2020-03-02 04:51:00 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use App\Models\Aircraft;
|
|
|
|
use App\Models\Airport;
|
|
|
|
use App\Models\Flight;
|
|
|
|
use App\Models\FlightField;
|
|
|
|
use App\Models\FlightFieldValue;
|
|
|
|
use App\Models\Journal;
|
|
|
|
use App\Models\JournalTransaction;
|
|
|
|
use App\Models\Observers\AircraftObserver;
|
|
|
|
use App\Models\Observers\AirportObserver;
|
|
|
|
use App\Models\Observers\FlightObserver;
|
|
|
|
use App\Models\Observers\JournalObserver;
|
|
|
|
use App\Models\Observers\JournalTransactionObserver;
|
|
|
|
use App\Models\Observers\SettingObserver;
|
|
|
|
use App\Models\Observers\Sluggable;
|
|
|
|
use App\Models\Observers\SubfleetObserver;
|
|
|
|
use App\Models\Observers\UserObserver;
|
2020-03-29 01:03:52 +08:00
|
|
|
use App\Models\Page;
|
2020-03-02 04:51:00 +08:00
|
|
|
use App\Models\PirepField;
|
|
|
|
use App\Models\PirepFieldValue;
|
|
|
|
use App\Models\Setting;
|
|
|
|
use App\Models\Subfleet;
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ObserverServiceProviders extends ServiceProvider
|
|
|
|
{
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
Aircraft::observe(AircraftObserver::class);
|
|
|
|
Airport::observe(AirportObserver::class);
|
|
|
|
Journal::observe(JournalObserver::class);
|
|
|
|
JournalTransaction::observe(JournalTransactionObserver::class);
|
|
|
|
|
|
|
|
Flight::observe(FlightObserver::class);
|
|
|
|
FlightField::observe(Sluggable::class);
|
|
|
|
FlightFieldValue::observe(Sluggable::class);
|
|
|
|
|
2020-03-29 01:03:52 +08:00
|
|
|
Page::observe(Sluggable::class);
|
|
|
|
|
2020-03-02 04:51:00 +08:00
|
|
|
PirepField::observe(Sluggable::class);
|
|
|
|
PirepFieldValue::observe(Sluggable::class);
|
|
|
|
|
|
|
|
Setting::observe(SettingObserver::class);
|
|
|
|
Subfleet::observe(SubfleetObserver::class);
|
|
|
|
User::observe(UserObserver::class);
|
|
|
|
}
|
|
|
|
}
|