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
Post a Comment