Skip to content

Instantly share code, notes, and snippets.

@captbrogers
Created December 20, 2012 18:50
Show Gist options
  • Save captbrogers/4347666 to your computer and use it in GitHub Desktop.
Save captbrogers/4347666 to your computer and use it in GitHub Desktop.
Laravel snippet for a restful API controller
<?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