feat: implement admin login form request

This commit is contained in:
2026-08-18 18:27:31 -07:00
parent b0848e65b9
commit 3d2d83516d
2 changed files with 60 additions and 0 deletions
+19
View File
@@ -25,4 +25,23 @@ if (!function_exists('getFileUrl')) {
return asset('storage/' . $file->path);
}
if (!function_exists('activeAdminSidebar')) {
function activeAdminSidebar(string|array $routeNames): string
{
$currentRouteName = \Illuminate\Support\Facades\Route::currentRouteName();
if (is_string($routeNames)) {
$routeNames = [$routeNames];
}
if (in_array($currentRouteName, $routeNames)) {
return 'active';
}
return '';
}
}
}