by Devin Yang
(This article was automatically translated.)

Published - 5 years ago ( Updated - 5 years ago )

Introduction

Mac or Linux users can now install the D-Laravel alias package from Sublime3's package control.
Through D-Laravel alias, we can execute artisan and composer commands in the container in an easier way.
In the docker environment, do you want to use composer to install the package? You don’t need to enter the container, or set the composer’s ce alias, and you can execute it directly in sublime.

The figure below shows the way of the command line, and the composer command is executed on the host side.

Installation:

1. Execute shift+command+p, and input insall, you can select Install Pacakge.
2. Search for dla and you should be able to find the D-Laravel alias package, press enter to complete the installation.

Hotkey introduction:

1. Custom hotkey
Sublime Text=>Preferences=>Key Bindings, add custom hotkeys to User settings.
[
{ "keys": ["super+alt+i"], "command": "php_artisan"},
{ "keys": ["super+shift+c"], "command": "composer"},
]
2. alt+command+i  Start the php artisan input panel.


3. Shift+command+c, execute composer input panel.


4. Through shift+command+p, you can also quickly find the command to be executed:


D-Laravel right-click menu:
We can also execute the composer and artisan commands in the D-Laravel container through the right-click menu.

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


php,docker,dlaravel

A brief introduction to the phpenv container environment I built

I don't have time to shoot an introduction video, so I'll just grab some pictures and introduce the container environment deviny/phpenv I use. https://github.com/DevinY/phpenvphpenv can be regarded as an evolutionary version of my previous D-Laravel open source project, conceptually extending the use of many Dlaravel operation methods. The update of the container tends to be controlled by the user to build his own image, so I am not very good at changing the version number. In fact, the php version number of D-Laravel seems to have not been changed for a long time:p

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.