Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use resource routing and model binding #57

Closed
pelim opened this issue Mar 23, 2016 · 1 comment
Closed

use resource routing and model binding #57

pelim opened this issue Mar 23, 2016 · 1 comment

Comments

@pelim
Copy link

pelim commented Mar 23, 2016

https://laravel.com/docs/5.2/controllers#restful-resource-controllers

Route::resource('events. tickets', EventsTicketsControl::class);
Route::resource('events. attendees', EventsAttendeesControl::class);

and bind the models to the route in the routeServiceProvider

https://laravel.com/docs/5.2/routing#route-model-binding

@jncampbell
Copy link
Contributor

I don't think the resource routes is a good idea. Listing routes individually is much more explicit, which makes it easier to give a bird's eye view of the application.

But +1 for the model binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants