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...

docker,dlaravel

D-Laravel 1.5.5 Change Notes

D-Laravel's fpm image was rebuilt using the official dockerfile of docker php before php 7.2.1. And so I can specify that the default owner of fpm is dlaravel, --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) --with-fpm-group=GRP Set the group for php-fpm to run as.

dlaravel

How to automatically detect and update the certificate issued by let's encrypt through getssl

It's really great that let's encrypt provides free certificates. However, is it a bit troublesome to update the certificate every three months? This article introduces how to generate multi-domain SAN certificate settings through getssl, and schedule automatic certificate renewal. It's very simple, just six steps to get it done.