feat(breadcrumbs): tambahkan pemuatan rute breadcrumbs jika kelas Breadcrumbs ada
- Memastikan rute breadcrumbs dimuat hanya jika kelas Breadcrumbs tersedia. - Meningkatkan modularitas dan pengelolaan rute dalam aplikasi.
This commit is contained in:
@@ -25,6 +25,10 @@ class WebstatementServiceProvider extends ServiceProvider
|
|||||||
$this->registerConfig();
|
$this->registerConfig();
|
||||||
$this->registerViews();
|
$this->registerViews();
|
||||||
$this->loadMigrationsFrom(module_path($this->name, 'database/migrations'));
|
$this->loadMigrationsFrom(module_path($this->name, 'database/migrations'));
|
||||||
|
|
||||||
|
if (class_exists('Breadcrumbs')) {
|
||||||
|
require __DIR__ . '/../../routes/breadcrumbs.php';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user