vendredi 26 août 2016

Display list and details using separate controllers in Laravel

I'm using the following two routes in my app, but they are failing. (only one works when I switch the positions). Notice that I'm using two separate controllers. What's the correct way of specifying routes for a scenario like this?

Route::controller('schedulers', 'SchedulersController', [
    'getIndex' => 'schedulers.index',
    'getUpdate' => 'schedulers.edit'
]);


Route::controller('schedulers/{schedulerId}', 'ReportsController', [
    'getIndex' => 'schedulers.reports',
]);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire