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