how to start a laravel project code example
Example 1: create laravel project
composer create-project laravel/laravel example-app
cd example-app
php artisan serve
Example 2: how to start composer in laravel project on localhost
php artisan serve
http:
http:
Example 3: create project command in laravel
Before starting this hope you installed composer dependancy manager for PHP.
-----------------------------------------------------------------------------
So if you want to create a project by name of 'first_laravel_app' in directory C:/xampp/htdocs/ then what you need to do is
Locate your project parent directory using cmd
>cd c:/xampp/htdocs
and fire this command
>composer create-project laravel/laravel first_laravel_app --prefer-dist
And its done, this is really easy and it also creates Application Key automatically for you.
Example 4: laravel new project
laravel new blog
Example 5: laravelstart project
composer create-project laravel/laravel your-project-name 4.2.*