36 lines
821 B
PHP
36 lines
821 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\GainView;
|
|
use App\Models\Settings;
|
|
use Illuminate\Queue\Events\JobProcessed;
|
|
use Illuminate\Queue\Events\JobProcessing;
|
|
use Illuminate\Support\Facades\Queue;
|
|
use Illuminate\Support\Facades\View;
|
|
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()
|
|
{
|
|
// 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);
|
|
}
|
|
}
|