Uploaded From CV. Swandhana Server

This commit is contained in:
Duidev Software House
2025-02-25 01:50:20 +00:00
committed by dwi_vendor
parent ffddee22df
commit 27064a1f7e
15185 changed files with 2328844 additions and 0 deletions

No files matched your search

@@ -0,0 +1,55 @@
<?php
namespace Onecentlin\Adminer;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
class ServiceProvider extends BaseServiceProvider
{
protected $namespace = 'Onecentlin\Adminer\Http\Controllers';
public function boot(Router $router)
{
$this->publish();
$adminerEnabled = config('adminer.enabled');
if (!$adminerEnabled) {
return;
}
$this->map($router);
}
protected function map($router)
{
if ($this->app->routesAreCached() === false) {
$prefix = config('adminer.route_prefix');
if ($prefix == null) {
$prefix = 'adminer';
}
$group = $router->group([
'namespace' => $this->namespace,
'as' => 'adminer::',
'prefix' => $prefix,
], function () {
require __DIR__ . '/Http/routes.php';
});
}
}
protected function publish()
{
$this->publishes([
__DIR__ . '/../public' => public_path(),
__DIR__ . '/../config/adminer.php' => config_path('adminer.php'),
__DIR__ . '/../resources/plugins' => resource_path('adminer/plugins'),
], 'adminer');
}
public function register()
{
}
}