Home / Laravel / How to install and configure downloaded Laravel Project on localhost

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

About Abid

I am Abid Hussain a professional software developer, worked on dozens of projects specializing in web development. I also provide web development service on Fiverr and Freelancer.

Check Also

Prime Number in PHP

Program To Find Prime Number in PHP

A Program To Find Prime Number in PHP A Prime Number is a whole number …

Leave a Reply

Your email address will not be published. Required fields are marked *