Global Partial Routes on Resources

Posted 11 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 ...

    'breeds' => 'BreedsController'
    'index', 'store', 'show', 'update', 'destroy'

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