1The full command works like this:
2
3php artisan serve --host=<host IP address> --port=<port to use>
4
5php artisan serve --host=127.0.0.1 --port=8080
1
2 Create a database locally named homestead utf8_general_ci
3 Download composer https://getcomposer.org/download/
4 Pull Laravel/php project from git provider.
5 Rename .env.example file to .envinside your project root and fill the database information. (windows wont let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
6 Open the console and cd your project root directory
7 Run composer install or php composer.phar install
8 Run php artisan key:generate
9 Run php artisan migrate
10 Run php artisan db:seed to run seeders, if any.
11 Run php artisan serve
12
13#####You can now access yo
14
15ur project at localhost:8000 :)
16
1// To install and use a specific version, you can enter it at the end of the command.
2// For example using version 5.8 ==>
3composer create-project --prefer-dist laravel/laravel projectName "5.8.*"
1 1. composer update --no-scripts or composer install
2 2. php artisan key:generate
3 3. rename example.env to .env
4 4. Change database credentials, set debug mode! Change app url
5 4. php artisan migrate(make sure u have the database running in the server)
6 5. php artisan config:clear
7 6. you are good to go!
8
1php artisan serve
2 /*
3To START composer in project folder on MacOS:
4 The original answer is:
5
6 The full command works like this:
7
8php artisan serve --host=<host IP address> --port=<port to use>
9
10php artisan serve --host=127.0.0.1 --port=8080
11AFTER: php artisan serve TERMINAL SHOWS:
12Laravel development server started: <http://127.0.0.1:8000>
13
14IN WEB BROWSER ENTER THE:
15http://127.0.0.1:8000 , OR:
16http://localhost:8000/
17AND YOU ARE IN ! ! !
18 */
19http://127.0.0.1:8000/
20http://localhost:8000/