How to install Laravel's Artisan?

前端 未结 5 1748
春和景丽
春和景丽 2021-01-30 10:06

I want to create migrations in Laravel but according to the tutorials I need the Artisan CLI. The php command works fine and I\'m on Windows. I type in php ar

5条回答
  •  旧巷少年郎
    2021-01-30 10:35

    in laravel, artisan is a file under root/protected page

    for example,

    c:\xampp\htdocs\my_project\protected\artisan

    you can view the content of "artisan" file with any text editor, it's a php command syntax

    so when we type

    php artisan

    we tell php to run php script in "artisan" file

    for example:

    php artisan change

    will show the change of current laravel version

    to see the other option, just type

    php artisan

提交回复
热议问题