Created
December 20, 2012 18:50
-
-
Save captbrogers/4347666 to your computer and use it in GitHub Desktop.
Laravel snippet for a restful API controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Api_${1}_Controller extends Base_Controller { | |
public $restful = true; | |
public function get_index() { | |
} | |
public function post_index() { | |
} | |
public function put_index() { | |
} | |
public function delete_index() { | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment