app->isLocal()) { $this->app->register(TelescopeServiceProvider::class); } $this->app->singleton('easy_sms', function ($app) { $config = config('easySms'); return (new EasySms($config)); }); } /** * Bootstrap any application services. * * @return void */ public function boot() { Resource::withoutWrapping(); $this->app->singleton(PermissionMiddleware::class, function () { return new AdminPermission(); }); Bike::observe(BikeObserver::class); Area::observe(AreaObserver::class); Parking::observe(ParkingObserver::class); } }