ldc-mesbr-app/app/Providers/AppServiceProvider.php

36 lines
681 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Providers;
2021-04-20 19:51:30 +02:00
use Illuminate\Http\Resources\Json\JsonResource;
2021-06-09 16:37:34 +02:00
use Illuminate\Support\Facades\URL;
2019-01-15 14:17:15 +01:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2021-06-09 16:37:34 +02:00
if (config('app.env') !== 'local') {
URL::forceScheme('https');
}
2019-02-13 16:37:14 +01:00
$this->loadViewsFrom(public_path('/landings'), 'landings');
2021-04-20 11:16:34 +02:00
2021-04-20 19:51:30 +02:00
JsonResource::withoutWrapping();
2019-01-15 14:17:15 +01:00
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}