如何为 Laravel 4 Artisan 安装 Sublime Text 插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22059276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 09:06:24  来源:igfitidea点击:

How to install Sublime Text plugin for Laravel 4 Artisan?

laravelsublimetext3

提问by user3093453

And so, I'm using sublime text 3and I don't know on how to install the plugin Sublime Text plugin for Laravel 4 Artisan. It says in Installationtab that Use Package Controller or create a the directory Laravel 4 Artisan in your Sublime Text Packages directory with source code, and you're ready to go.So what to do now? I don't get it. Please help.

所以,我正在使用sublime text 3,但我不知道如何为 Laravel 4 Artisan安装插件Sublime Text 插件。它在Installation选项卡中说Use Package Controller or create a the directory Laravel 4 Artisan in your Sublime Text Packages directory with source code, and you're ready to go.那现在该怎么办?我不明白。请帮忙。

回答by lojals

First If you don't have Package ControlInstall it ctrl+`and paste this:

首先如果你没有包控制安装它ctrl+`并粘贴这个:

For SUBLIME 3

对于崇高 3

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

After that you can use Package control with:

之后,您可以使用包控制:

? + ? + P and write install and select Package control. It opens other field to write, in this write Laravel and choose Laravel 4 Artisanand wait to finish the installation.

? + ? + P 并编写安装并选择包控制。它打开其他字段写入,在此写入 Laravel 并选择Laravel 4 Artisan并等待完成安装。

So when you finish the process you can use that plugin to create controllers and models.

因此,当您完成该过程时,您可以使用该插件来创建控制器和模型。