Global Partial Routes on Resources

Posted 8 months ago by topvillas

Is there a way to globally declare partial routes on resources?

This works nicely ...

Route::resource('breeds', 'BreedsController')->only([
    'index', 'store', 'show', 'update', 'destroy'
]);

But the array syntax of declaring resources returns null and so can't use only ...

Route::resources([
    'breeds' => 'BreedsController'
])->only([
    'index', 'store', 'show', 'update', 'destroy'
]);

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.