by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

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

Both old and new versions of D-Laravel can be used, after downloading to the D-Laravel directory, you can.
Then, create your favorite alias.

Tags: dlaravel

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


dlaravel

D-Laravel released v1.1.5

In response to the launch of Laravel 5.5, PHP also released PHP 7.0.23 and PHP 7.1.9. The fpm version used by D-Laravel is also updated...just adjust the version defined by your docker-compose You can use the latest php...

dlaravel

D-Laravel specific service restart

Normally, we use ./console restart to rebuild and execute contaiener. Sometimes, we have multiple services and don't want to restart all services at once, At this time, you can use ./console restart [servce name] to restart a specific service..

nginx,dlaravel

How to configure HTTPS on nginx to get an SSL A+ score from Qualys

This article describes how to adjust the ssl settings of nginx so that the website can obtain an SSL report and get an A+ rating. Here I am using letsencrypt free credentials. As long as you use the official Docker nginx new version image preset by D-Laravel, you should be able to achieve the same effect as mine. You can check your host SSL settings through the following. https://www.ssllabs.com/ssltest/index.html