How to install and configure downloaded Laravel Project on localhost

How to install and configure downloaded Laravel Project on localhost

April 24, 2018 0 By Abid
  • Open command prompt go to project directory and update composer using this command : composer update .
  • Rename .env.example file to .env
  • Change database name, user name and password.
  • Go to app/Providers/AppServiceProviders.php and add following code in boot function: Schema::defaultStringLength(191);
  • Now migrate database using this command: php artisan migrate
  • Run laravel project using this command: php artisan serve 
  • Open browser and type 127.0.0.1;8000