resource is collection of 7/8 route where get is only a single route of GET request. Take a look at http://laravel.com/docs/4.2/controllers#restful-resource-controllers
Oct 16, 2014
3
Level 4
[HELP] Route::get and Route::Resource
Hi,
I am following the "Larabook" series after completing the "Getting Started With Laravel 4" Series.
I am confused why he has gone back to using Route::get, instead of Route::resource.
Example 1.
Route::get('/', 'PagesController@home');Route::resource('/', 'PagesController');
Example 2
Route::get('register', [ 'as' => 'register_path', 'uses' => 'RegistrationController@create' ]);
^ I really don't get this implementation. Then in the create.blade.php he references
{{ Form::open(['route' => 'register_path']) }}
Route::resource('register', 'RegistrationController');
Then in the create.blade.php could you not just use.
{{Form::open(['route' => 'register/create'])}}
Am i wrong in thinking this? Is there a reason you should use get instead of resource and resource instead of get.
Please or to participate in this conversation.