Support the ongoing development of Laravel.io →
Installation Configuration

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

e4rthdog e4rthdog Joined 15 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.