What dont you understand ? The route "foo" uses the controller "FooController", method "method" and can be called as "name".
Dec 6, 2015
6
Level 1
Please explain naming Controller Routes, 'uses', 'as'
I'm sure this is very simple, but I do not understand. Please explain this, from the documentation:
Naming Controller Routes Like Closure routes, you may specify names on controller routes:
Route::get('foo', ['uses' => 'FooController@method', 'as' => 'name']);
Please or to participate in this conversation.