This article is the application teaching of D-Laravel, how to directly execute php artisan in the container on the host side.
After customizing the alias, it can be directly in the project folder on the host side,
Directly execute the php artisan in the contianer. alias a="../../artisan.sh"
So, for example, there is a blog Project in the sites folder
cd sites/blog
We can execute php artisan directly with alias a
a make:controller MyBlogController
a --version
Alias a is equal to php artisan.
We can change another name, not necessarily called a.
Please remember to update to the latest version of D-Laravel, or directly download the bash of artisan.sh to the D-Laravel folder.
https://github.com/DevinY/dlaravel/blob/master/artisan.sh
Then, create your favorite alias.
No Comment
Post your comment