My project need new mirrors domain each weeks.
To do that, in the route file I add a Route::group
for each domains.
Route::group(['domain' => 'domain2.com'], function(){
Route::group(['namespace' => 'Api', 'prefix' => 'r'], function() {
Route::get('/{hash}', 'ApiController@index');
});
Route::get('/', function(){
return view('errors.noshort');
});
});
Route::group(['domain' => 'domain1.com'], function(){
Route::group(['namespace' => 'Api', 'prefix' => 'r'], function() {
Route::get('/{hash}', 'ApiController@index');
});
Route::get('/', function(){
return view('errors.noshort');
});
});
How can I merge this two Route::group
and the next ?
Thank you for your help
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jn4WOH
via IFTTT
Aucun commentaire:
Enregistrer un commentaire