I am using resource controller in laravel5.1 as follows,
Route::resource('users', 'UserController', ['only' => ['index', 'show', 'store', 'update', 'destroy']]);
I would like to add two more URL
such as active and inactive.
Route::put('active', 'UserController@active');
Route::delete('active', 'UserController@inactive');
It is working, but I want to implement these active and inactive in all cases such as employees,vehicles etc.
So is there any other easy method or globally adding to resource controller?