Now I am writing routes like this:
Route::group(['prefix' => 'v2/'], function(){ Route::post('/reg', 'UserController@reg'); Route::post('/login', 'UserController@login'); ... });
is there any way to make routes like this :
Route::group(['prefix' => 'v2/'], function(){ Route::group(['uses' => 'UserController'], function(){ Route::post('/reg', '@reg'); Route::post('/login','@login'); ... }); });
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NXCo54
via IFTTT
Aucun commentaire:
Enregistrer un commentaire