How to install and configure downloaded Laravel Project on localhost

  • 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

Leave a Reply