feat: implement AdminController for CMS management and AppServiceProvider for application bootstrapping
This commit is contained in:
@@ -15,13 +15,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
$this->app->register(TelescopeServiceProvider::class);
|
||||
$this->app->register(TelescopeServiceProvider::class);
|
||||
/*
|
||||
if ($this->app->isLocal()) {
|
||||
$this->app->register(TelescopeServiceProvider::class);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,21 +33,15 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
//
|
||||
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