Add new methods to a resource controller in Laravel -


i want know if possible add new methods resource controller in laravel , how it.

i know these methods default (index, create, store, edit, update, destroy). want add additional methods , routes same controller.

is possible?

just add route method separately, before register resource:

route::get('foo/bar', 'foocontroller@bar'); route::resource('foo', 'foocontroller'); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -