Some Laravel Command

Some Laravel Command

2020, Jul 08    

Create Project Laravel

You can create Project Laravel by 2 ways:

1: Create by Composer command

composer create-project –prefer-dist laravel/laravel projectName

If error, maybe you didn’t install Composer, you can install Composer at: Composer

2: Create by Laravel installer

If you want to create project by Laravel installer you ought to install it by:

composer global require laravel/installer

You can create project Laravel with:

laravel new projectName

Run Project

php artisan serve

If you want run on different port

php artisan serve - -port=999

Some command useful if error

npm install

composer install

composer update

Remember you did cd to path of your project