2025-05-23 15:35:59 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2025-05-28 09:24:03 +08:00
|
|
|
use App\Models\Room;
|
|
|
|
use App\Observers\RoomObserver;
|
|
|
|
|
2025-05-23 15:35:59 +08:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
|
|
|
public function register(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
2025-05-28 09:24:03 +08:00
|
|
|
Room::observe(RoomObserver::class);
|
2025-05-23 15:35:59 +08:00
|
|
|
}
|
|
|
|
}
|