In this post i will show to how to create a Laravel project using command line.
For this using CLI you must have to install composer.
using command prompt or using Terminal go to your destination directory where you want to create your laravel project. Then type below command.
$ composer create-project laravel/laravel YOUR_PROJECT_NAME
Here you can see an error is coming , if not then all good no any problem.
for solving the above error we will use sudo.
$ sudo composer create-project laravel/laravel example-pdf
now it will takes some time. Then your project is created.
for Running your project , Go to project directory
$ cd YOUR_PROJECT_NAME
and then run by using
$ php artisan serv
and you will see an output of green color “Starting Laravel development server: http://127.0.0.1:8000”
copy this URL and run in your browser and will see you project running successfully.
Thanks .