Answers for "how to install php artisan serve"

PHP
1

run laravel project from github

Clone your project
Go to the folder application using cd command on your cmd or terminal
Run composer install on your cmd or terminal
Copy .env.example file to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu
Open your .env file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration.
By default, the username is root and you can leave the password field empty. (This is for Xampp)
By default, the username is root and password is also root. (This is for Lamp)
Run php artisan key:generate
Run php artisan migrate
Run php artisan serve
Go to localhost:8000
Posted by: Guest on September-19-2020
3

how to install new project in laravel

You can create project by 2 ways:

First is installing it without defining version:
composer create-project laravel/laravel yourProjectName

Secondly you can install by defining version:
composer create-project laravel/laravel="VersionOfYourChoice" yourProjectName
Posted by: Guest on December-22-2020
1

how to start composer in laravel project on localhost

php artisan serve
  // The original answer is:
  /* 
  The full command works like this:

php artisan serve --host=<host IP address> --port=<port to use>

php artisan serve --host=127.0.0.1 --port=8080
  */
Posted by: Guest on August-15-2020

Browse Popular Code Answers by Language