Skip to content

Commit

Permalink
Remove ponto do dominio default
Browse files Browse the repository at this point in the history
  • Loading branch information
munizeverton committed Feb 1, 2019
1 parent 4152b54 commit 17f2bed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=America/Sao_Paulo
APP_TRACK_ERROR=false
APP_DEFAULT_HOST=.ieducar.com.br
APP_DEFAULT_HOST=ieducar.com.br

API_ACCESS_KEY=
API_SECRET_KEY=
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function boot()
}

Request::macro('getSubdomain', function () {
return Str::replaceFirst(config('app.default_host'), '', $this->getHost());
return Str::replaceFirst('.' . config('app.default_host'), '', $this->getHost());
});

// https://laravel.com/docs/5.5/migrations#indexes
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,5 @@

'trackerror' => env('APP_TRACK_ERROR', false),

'default_host' => env('APP_DEFAULT_HOST', '.ieducar.com.br'),
'default_host' => env('APP_DEFAULT_HOST', 'ieducar.com.br'),
];

0 comments on commit 17f2bed

Please sign in to comment.