今天在使用php artisan
命令創(chuàng)建controller時,進入到了項目的controller目錄下,在此目錄下使用了命令,提示Could not open input file:artisan
如下圖:
1.jpg
其實
php artisan
不是一個全局命令,這個命令只能在項目的根目錄下使用當我切換目錄到項目根目錄下使用artisan命令時就好了
2.jpg
今天在使用php artisan
命令創(chuàng)建controller時,進入到了項目的controller目錄下,在此目錄下使用了命令,提示Could not open input file:artisan
如下圖:
php artisan
不是一個全局命令,這個命令只能在項目的根目錄下使用