48 lines
832 B
PHP
48 lines
832 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Pagination\Paginator;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
$this->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();
|
|
|
|
|
|
}
|
|
|
|
private function protectDocumentFolders()
|
|
{
|
|
$documentsPath = storage_path('documents');
|
|
|
|
}
|
|
}
|