Artisan new command
The artisan new
command!
artisan new
is a command in Laravel, a popular PHP web framework, that allows you to create a new Laravel project or a new package.
Here are some examples of how you can use the artisan new
command:
Create a new Laravel project:
composer create-project --prefer-dist laravel/laravel project-name
This will create a new Laravel project with the name project-name
in the current directory.
Create a new Laravel package:
composer create-project --prefer-dist laravel/laravel package-name
This will create a new Laravel package with the name package-name
in the current directory.
Create a new Laravel project with a specific version:
composer create-project --prefer-dist laravel/laravel project-name --version=8.0
This will create a new Laravel project with version 8.0.
Create a new Laravel package with a specific version:
composer create-project --prefer-dist laravel/laravel package-name --version=8.0
This will create a new Laravel package with version 8.0.
Note: Make sure you have Composer installed and configured on your system before running these commands.