ldc-gen-game-web/app/Providers/AppServiceProvider.php

37 lines
821 B
PHP
Raw Normal View History

2020-10-21 15:26:21 +02:00
<?php
namespace App\Providers;
use App\Models\GainView;
2020-10-29 15:40:23 +01:00
use App\Models\Settings;
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Queue\Events\JobProcessing;
use Illuminate\Support\Facades\Queue;
2020-10-29 15:40:23 +01:00
use Illuminate\Support\Facades\View;
2020-10-21 15:26:21 +02:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2020-10-29 15:40:23 +01:00
// On ramène le nom du jeu et le nom de la société sur toute les pages
$settingsGlobal = Settings::find(1)->select('name', 'company')->first();
View::share('settingsGlobal', $settingsGlobal);
2020-10-21 15:26:21 +02:00
}
}