app->register(TelescopeServiceProvider::class); /* if ($this->app->isLocal()) { $this->app->register(TelescopeServiceProvider::class); } */ } /** * Bootstrap any application services. * * @return void */ public function boot() { // Paginator::useBootstrap(); $this->protectDocumentFolders(); // Register Observers \App\Models\NaksCertificate::observe(\App\Observers\NaksCertificateObserver::class); \App\Models\NaksWelder::observe(\App\Observers\NaksWeldersObserver::class); \App\Models\NaksConsumable::observe(\App\Observers\NaksConsumablesObserver::class); \App\Models\RegisterOfExpert::observe(\App\Observers\RegisterOfExpertsObserver::class); \App\Models\WeldingEquipment::observe(\App\Observers\WeldingEquipmentObserver::class); } private function protectDocumentFolders() { $documentsPath = storage_path('documents'); } }