Step 1: Laravel Setup
Go into the directory of the 'backend', by using the command line interface. like below at the mapmama directory.
cd backendExecute 'php artisan migrate' to run database migrations and set up the database schema.
php artisan migrateIf you encounter an error similar to the one shown in the provided image, indicating the absence of the 'vendor' directory, it signifies missing dependencies.

To resolve this issue, run 'composer install' in the terminal to retrieve and install the necessary dependencies.
composer installNow, do the 'php artisan migrate' again and it should work.
Execute 'php artisan serve' to start the PHP development server.
php artisan serveLaravel is success run in your local environment when you see the output like below

Last updated