Code Monkey home page Code Monkey logo

laravel-alfred-extension's Introduction

Laravel-Alfred-Extension

Just a note that I am working on a new version for Laravel 4

This extension will now automatically update itself as of version 1.4 To check your version at any time run laravel version

This extension is for Alfred and you require the Powerpack.

With this extension you can create a new laravel project with the latest version of laravel and run generator tasks with the generator by Jeffrey Way.

###Installation If you are using an old version please delete that first then:

Download this repo and drag the laravel folder into the extensions tab of alfred preferences.

##Instructions By default all new projects will be stored in the Sites directory inside your home folder. You may change this if you work from another directory. You use the following command

laravel directory path/to/directory/

e.g. if you use MAMP you would do the following laravel directory /Applications/MAMP/htdocs/ This directory must end with a trailing slash!

####New Project laravel new project1

This will create a directory called 'project1' in your sites directory and laravel will be installed there. ####Change Project laravel project project2

If you have more than 1 project on the go you can switch between them using the 'project' command. Then you can run the generator commands below.

You can run laravel project without a secondary command and that will tell you the current project.

You may also list all the laravel projects by running laravel list.

####Generator Commands All of the following commands use the laravel generator by Jeffrey Way. So see the readme on that page for more info.

######Generate a controller laravel c controllername or laravel controller controllername Will generate a contoller called controllername.

As we are using Jeffs generator you can doing the following laravel c admin index show edit and this will create methods for that controller like so:

<?php 

class Admin_Controller extends Base_Controller 
{

	public function action_index()
	{

	}

	public function action_show()
	{

	}

	public function action_edit()
	{

	}

}

You can use the following in a similar fashion:

laravel model item or laravel m item

laravel view item or laravel v item

laravel migration item or laravel mig item

laravel assets item or laravel a item

laravel test item or laravel t item

laravel resource item or laravel r item

####Migrations After creating a migration with laravel mig item you will want to migrate it, you can do this by doing the following:

Firstly you need to setup the migrations table with laravel install.

Then you can migrate your migration with laravel migrate.

You can also rollback a migration at anytime with laravel rollback.

####Artisan This extension is mainly a wrapper that runs commands through artisan. If you need to run any other commands through artisan then you can do the following laravel artisan command.

####The Editor I have had a few requests to either change the editor or disable it when creating a new project.

I am looking into new editors but for now you can do laravel editordisable to disable it and laravel editorenable to enable it again.

##Comments & Suggestions

If you have any comments or suggestions for this extension the please comment on my blog post or log them as an issue here on git hub. Thanks.

laravel-alfred-extension's People

Contributors

clarkeash avatar jonphipps avatar r15ch13 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-alfred-extension's Issues

Composer CLI Methods

Would be nice when the L4 compatible Version is released to be able to run composer methods via Alfred or even have some of it automated.

I.e. when I run controller:make also run php composer.phar autoload-dump

Liking the new changes in 1.6!

Would be nice to expand the "success" messages accordingly, being a bit more verbose.

"Controller created successfully!" -or- "Test controller created successfully!"
"Resources created successfully!"
etc.

it's not working

i followed all the steps to install alfred app and laravel alfred extension.
When I type laravel new firstproject and then press enter, nothing is done.
Screen Shot 2013-01-31 at 11 08 59 AM

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.