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

Safe Update D-Laravel

How to upgrade the current D-Laravel. If your current use environment is very smooth and you have not encountered any problems, you don't need to update it. If you want to use the latest version, and bug fixes, etc., please read this article carefully, In order to ensure a smooth upgrade, the following is the recommended way to upgrade D-Laravel.

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

dlaravel

Ha, I successfully made D-Larave run in the Raspberry Pi ARM environment

I bought the Raspberry Pi this time because I thought it was very fun. In addition, the Mac environment in my home is too new to compile Line Simple Beacon normally. Through the Raspberry Pi, it is easy to use, and there will be no problems in the environment. Of course, there are more applications. But as the author of D-Laravel, of course I have to come and give it a try.....