34 lines
692 B
PHP
34 lines
692 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
// if (App::environment() === 'production' || App::environment() === 'dev') {
|
|
// URL::forceScheme('https');
|
|
// }
|
|
$this->loadViewsFrom(public_path('/landings'), 'landings');
|
|
|
|
JsonResource::withoutWrapping();
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
}
|