If PHP and Composer are installed, you can install the Laravel installer globally via Composer:
After installing PHP, Composer, and the Laravel installer, you can create a new Laravel application. The installer will prompt you to select your preferred testing framework, database, and starter kit:
Once the application is created, use the dev Composer script to start the Laravel local development server, queue workers, and Vite dev server:
After the server starts, your app can be accessed in the browser at http://localhost:8000. Next, update the .env configuration file to connect to your database. For example, if using MySQL, update the DB_* variables in .env like so:
Install via Composer:
Run the following command to install the API documentation tool:
You can now access Laravel Apidoc at http://localhost:8000/apidoc.
After installation, visiting the URL will show the following interface:
