Giter Club home page Giter Club logo

laravel-4-artisan's Introduction

Laravel 4 Artisan commands

Fork of Sublime Text plugin for Laravel 3 Artisan commands

This plugin allows you the run the normal Artisan CLI using the Sublime Text interface, without having to open and use the command line.

Available commands:

Laravel Artisan
  • Laravel Artisan: Changes
  • Laravel Artisan: Clear Compiled
  • Laravel Artisan: Down
  • Laravel Artisan: Dump Autoload
  • Laravel Artisan: Help
  • Laravel Artisan: List
  • Laravel Artisan: Migrate
  • Laravel Artisan: Optimize
  • Laravel Artisan: Routes
  • Laravel Artisan: Serve
  • Laravel Artisan: Up
  • Laravel Artisan: Workbench
  • Laravel Artisan: Asset: Publish
  • Laravel Artisan: Auth: Reminders
  • Laravel Artisan: Cache: Clear
  • Laravel Artisan: Command: Make
  • Laravel Artisan: Config: Publish
  • Laravel Artisan: Controller: Make
  • Laravel Artisan: DB:Seed
  • Laravel Artisan: Key: Generate
  • Laravel Artisan: Migrate: Install
  • Laravel Artisan: Migrate: Make
  • Laravel Artisan: Migrate: Rollback
  • Laravel Artisan: Migrate: Reset
  • Laravel Artisan: Migrate: Refresh
  • Laravel Artisan: Queue: Listen
  • Laravel Artisan: Queue: Subscribe
  • Laravel Artisan: Queue: Work
  • Laravel Artisan: Session: Table
  • Laravel Artisan: Custom Command
Laravel Generate (Support for Jeffrey Way's Laravel Generators):
  • Laravel Generate: Model
  • Laravel Generate: Controller
  • Laravel Generate: Seed
  • Laravel Generate: View
  • Laravel Generate: Migration
  • Laravel Generate: Resource
  • Laravel Generate: Scaffold
  • Laravel Generate: Form
  • Laravel Generate: Test
  • Laravel Generate: Pivot Table
Custom Commands

You can add custom commands. Use Preferences/Package Settings/Laravel 4 Artisan/Commands โ€“ User menu item.

Simple command structure:

[
    {
        "caption": "Laravel Artisan: Deploy Project",
        "command": "laravel4_artisan",
        "args": {
            "command": "deploy",
            "fill_in": true,
            "fill_in_lable": "Enter the branch name with options"
        }
    }
]

Change command caption and command in args. Use fill_in: true if you need some input for your command and fill_in_lable: "Text" for message.

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.

Usage:

Press Cmd + Shift + P for the dropdown command list, search for Laravel , and pick your command. Also you can use Tools/Laravel... menu item

Notes:

  • Artisan file needs to been in the root folder of your structure in the sidebar.
  • You need insert in Sublime Text user settings "show_panel_on_build": true or use Tools/Build Results/Show Build Results menu item for view results.

Donate:

If you liked this plugin, you can donate to support it!

Paypal donate

Give some feedback.

Thanks.

laravel-4-artisan's People

Contributors

arnelbucio avatar evgeny-golubev avatar michaelxor avatar narven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-4-artisan's Issues

Laravel Generate: Controller Error

if i added Route::controller('photo', 'PhotoController') first to the routes then tried Laravel Generate: Controller, i get this error

{"error":{"type":"ReflectionException","message":"Class PhotoController does not exist","file":"\/Applications\/AMPPS\/www\/Laravel\/All-In-One-Project\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerInspector.php","line":28}}[Finished in 0.2s]

but if i made Route::resource then tried the same cmnd all goes well and the controller file gets created without any errors , any thoughts why this happens ?

Laravel Artisan: Auth: Reminders gives error

unfortunately it doesn't work and it gives this error

[InvalidArgumentException]                                                                
  Command "auth:reminders" is ambiguous (auth:reminders-table, auth:reminders-controller).  

Edit:
fixed.

[Request] Add settings file for specifying php path

For development I use the php provided by my MAMP installation, which lives at /Applications/MAMP/bin/php/php5.4.10/bin/php.

Unfortunately 'Laravel 4 Artisan' has php hardcoded. While I do modify the PATH variable in .bash_profile so that the php command looks in the MAMP location instead of the default that lives at /usr/bin/php, when the script executes it does not use the settings defined in .bash_profile, and so my default php is used.

A similar sublime text 2 package "Laravel Generator" gets around this by providing a settings file where you can easily modify php_path. However this package does not contain nearly as many features, so I would prefer using yours if possible.

I would like to request that you please add a similar settings file so that users don't have to manually edit the python code to change their php path (which is how I am currently using Laravel 4 Artisan)

Error: "Mcrypt PHP extension required."

I get this error when running the commands

create_users_table
username:string, password:string, email:string

I have used phpinfo() and php -m, as well as which php and /etc/apache2/httpd.conf to confirm I have mccrypt installed and that the command line php and apache php are the same.

EDIT: Can someone tell me how to do the same thing on the command-line so I can see if the problem is Artisan or the plugin?

Laravel Generate:from not working

I am having this error:

     [InvalidArgumentException]               
     Command "generate:form" is not defined.  
     Did you mean one of these?               
     generate:model                       
     generate:seed                        
     generate:view                        
     generate:scaffold                    
     generate:publish-templates           
     generate:resource                    
     generate:pivot                       
     generate:migration                   
     generate:controller   

Please Fix this

migrate:refresh error...


  •      *
    


  •      *
    

Do you really wish to run this command?

[RuntimeException]
Aborted

migrate:refresh [--database[="..."]] [--force] [--seed] [--seeder[="..."]]

[Finished in 0.1s]

Decode error - output not utf-8

Hi,

When i use generate:seed fonction in sublime text 3 i've got this error :

[Decode error - output not utf-8]
[Finished in 0.0s with exit code 1]
[cmd: php C:\wamp\www\laravel\artisan generate:seed users]
[dir: C:\wamp\www\laravel]
[path: C:\Ruby193\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\app\oracle\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft\Exchange Server\bin;C:\Program Files\Microsoft\Exchange Server\Scripts;C:\wamp\bin\php\php5.4.16;C:\ProgramData\ComposerSetup\bin;C:\Program Files (x86)\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\OpenVPN\bin;C:\pstools;C:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;C:\Users\mouftier-al\AppData\Roaming\npm]

Anyone can help me to solve it ?

Thanks

open file after creation.

could u please add an option so the plugin will open the file after creation for things like
model,controller,migration,etc... ?

Not working

I have Sublime Text 2 with the Laravel 4 Artisan and Generator packages installed. I want to generate a controller.
I hit Ctrl-Shift-P and type Laravel and get the dropdown with the following options:
Laravel Artisan Command and Laravel Generate: Command, Migration, Model, Resource, Scaffold, Seed, Test, View
I notice there is no Generate:Controller option so I click Laravel Artisan Command and then type into the console: Controller:make TestController, press Enter and nothing happens.
Any ideas?

[RuntimeException] Aborted

Hello,

I've got a problem generating a resource (or scaffold). Every other generation works nice!

  • PHP is running (xampp) on Windows.
  • The path to PHP is set manually, even if only "php" would do the job.
  • Artisan ist availabe in the project root or Laravel,
  • I can run artisan commands AND generate a resource in the terminal!

Hopefully I've covered everything. The only problem now is that I can't generate a resource through ST. Here is the error:


Do you want me to create a Ben model? [yes|no]

[RuntimeException]
Aborted

generate:resource [--fields[="..."]] resource

[Finished in 0.5s]


Do you guys have any ideas why it just doesn't work in ST?!

[Request] Modify 'Custom Command' to display output.

Currently the command Laravel Artisan: Custom Command does not output the result of the entered command. For example entering 'routes' after running Laravel Artisan: Custom Command does not display anything.

A similar package Laravel Generators manages to do this correctly with its command: Laravel Artisan Command. As a comparison, when entering routes in that package the routes information is correctly displayed.

Cannot find custom command

I'm having some troubles executing my custom command. I added this in my commands - user:

[
"caption": "Migration Refresh & Seed",
"command": "laravel_refresh",
"args": [
"command": "migrate:refresh --seed"
]
]

However, I cannot find "laravel_refresh" when I try to execute. How can I fix this?

Thank you for the great plugin!

Error Generating Controller

I'm receiving this error when I try to generate a controller:

{"error":{"type":"ErrorException","message":"Missing argument 2 for Illuminate\\Routing\\Router::controller(), called in C:\\xampp\\htdocs\\laraveltest\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php on line 208 and defined","file":"C:\\xampp\\htdocs\\laraveltest\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":250}}[Finished in 1.4s]

What argument am I missing? Generating a resource works just fine.

No permission

When i try to run artisan migrate:make (create_users_table) - the text in brackets is entered in the console like thing -

[Errno 13] Permission denied
[cmd: ['/Applications/MAMP/bin/php/php5.5.3/bin', '/Applications/MAMP/htdocs/Dyvke/artisan', 'migrate:make', 'create_users_table']]
[dir: /Applications/MAMP/htdocs/Dyvke]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

I am not sure how to give this sudo perms.

Commands on another box

Is there any way this can/could be made to send commands to another box? I develop on a local dev server but more and more people are using Vagrant. It would be nice if it could fire them over ssh.

Many Thanks.

New installation error

Hello,
i have just installed from Sublime packages but when i try to run a command i get a message at the bottom of the editor: "Artisan not found".

I have in my settings fire the path to PHP: C:/wamp/bin/php/php5.3.13

Any ideas?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.