I have my routes.php as follows:
<?php
$approutes =function (){
Route::group(['middleware' => 'auth'], function(){
Route::get('/', 'AdminController@index');
Route::get('profile/{user}','ProfileController@index');
Route::post('profile/{user}/update',array('as' => 'profile.update','uses' => 'ProfileController@update'));
Route::resource('posts','PostsController');
Route::resource('tags','TagsController');
Route::resource('health','HealthController');
Route::resource('health-categories','HealthCategoriesController');
});
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController'
]);
};
$siteroutes =function (){
Route::get('/', 'SiteController@index');
};
Route::group(['domain' => 'my.xxxx.com'],$approutes);
Route::group(['domain' => 'my.xxxx.dev'],$approutes);
Route::group(['domain' => 'www.xxxx.com'],$siteroutes);
Route::group(['domain' => 'www.xxxx.dev'],$siteroutes);
In my development .dev domains it is ok.
BUT when i tried to put it online in the .com domain all references from link_to_action (and possibly from every other route function) defaults to .dev domain.
I cant figure out what is happening.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community