Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clarkeash/Laravel-Alfred-Extension


https://github.com/clarkeash/Laravel-Alfred-Extension

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

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](http://www.alfredapp.com/) and you require the [Powerpack](http://www.alfredapp.com/powerpack/).

With this extension you can create a new laravel project with the latest version of [laravel](http://laravel.com/) and run generator tasks with the generator by [Jeffrey Way](https://twitter.com/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](https://github.com/jeffreyway/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