i got this method on my routes.php:
Route::resource('maintenance/templates', 'TemplateController', ['names' => createRouteNames('fleet.maintenance.templates')]);
But, i understand, this method break in laravel 5 so, How can i upgrade this method? I understand i need use Route::group(
but, i don't know how.
This is one of the tries i did, but, it didn't work:
Route::group(['maintenance/templates' => 'TemplateController'], function(){
Route::resource('template/config', 'ConfigController',[
'only' => ['store', 'update', 'destroy'],
'names' => createRouteNames('fleet.template.config'),
]);
Route::controller('template', 'TemplateController', [
'getTemplates' => 'api.template',
'postService' => 'api.template.service',
]);
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire