flexisip-account-manager/flexiapi/app/Providers/AppServiceProvider.php
Timothée Jaussoin 98ddf1f065 Enforce a redirection on the login page if the account is logued in
Use the APP_URL variable to define the base url
Bump the package number
2021-07-29 16:58:18 +02:00

20 lines
404 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
//
}
public function boot()
{
// Add following lines to force laravel to use APP_URL as root url for the app.
$strBaseURL = $this->app['url'];
$strBaseURL->forceRootUrl(config('app.url'));
}
}