by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 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


dlaravel,docker

D-Laravel learning three stages

Chat about the three stages of using D-Laravel, why use D-Laravel. Because the configuration files used by D-Laravel are quite simple, it is very suitable for beginners of Docker to learn, And users who do not know how to use Docker can also use the two commands ./console and ./create to create a project.

dlaravel

How to start supervisor on D-Laravel

Since queue workers are a long-running program, we need a program manager supervisor to monitor whether the process on the Linux system is running continuously. For example, when the queue:work operation fails, the queue:work process can be automatically restarted. Fortunately, D-Laravel has a built-in supervisor, so you don't need to install it yourself to use it. This article briefly introduces how we start the supervisor in the container.

dlaravel

How to directly execute the php artisan of different projects in the container on the host.

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, you can directly execute php artisan in the contianer in the project folder on the host side. alias a="../../artisan.sh"