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(); Blade::directive('includeCache', function ($expression) { return "fullUrl()); echo Cache::remember(\$cacheKey, 3600, function() use (\$view, \$__data, \$__env) { return view(\$view, \$__data)->render(); }); ?>"; }); } private function protectDocumentFolders() { $documentsPath = storage_path('documents'); } }