Appearance
How to install Laravel's Artisan?
Artisan is bundled with the Laravel framework, so you don't need to install it separately. You just need to install Laravel itself. Here's how:
- First, make sure that you have PHP and Composer installed on your machine. Laravel 11 requires PHP 8.2 or higher and Composer to be installed.
- Next, open a terminal window and navigate to the directory where you want to install Laravel.
- Run the following command to install Laravel:
bash
composer create-project laravel/laravel myprojectThis will create a new Laravel project in a directory called "myproject". Replace "myproject" with the name of your project.
- After the installation is complete, navigate to the project directory:
bash
cd myproject- You can now use Artisan by running the
php artisancommand in your terminal window.
For example, you can use the following command to view a list of available Artisan commands:
bash
php artisan listTo start the local development server, run:
bash
php artisan serveI hope this helps! Let me know if you have any questions.