Admin Panel
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-29 14:57:37 +07:00
parent 04fbddba13
commit 8c6dad2a31
94 changed files with 4864 additions and 1151 deletions
@@ -2,6 +2,7 @@
namespace App\Http\Middleware;
use App\Support\SiteInfo;
use Illuminate\Http\Request;
use Inertia\Middleware;
@@ -39,6 +40,10 @@ class HandleInertiaRequests extends Middleware
...parent::share($request),
'name' => config('app.name'),
'locale' => app()->getLocale(),
'site' => fn () => SiteInfo::get(),
'can' => [
'manageUsers' => (bool) $request->user()?->can('manage-users'),
],
'auth' => [
'user' => $request->user(),
],