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


dlaravel

Super easy to use HTML to PDF kit mpdf introduction

During development, will it be necessary to output HTML to PDF? This video introduces how to output PDF on the screen through the mpdf library of php.

dlaravel

Use D-Laravel to build your own dedicated php fpm image.

D-Laravel has provided a built php image, if you need to adjust it yourself and build your own dedicated image is quite simple. 1. First, enter dockerfiles/fpm in D-Laravel, and select the PHP version you want to build, such as 7.2. The command is as follows...