İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?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();
|
||||
|
||||
// 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');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user