Tenant management

This commit is contained in:
th.guenther committed 2026-06-21 20:46:16 +02:00
1 parent 1b9384dad1
commit cfc7c7eee2
29 files changed
+884 -8

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Middleware;
use Closure;
class LvOnlyMiddleware
{
public function handle($request, Closure $next)
{
if (app('tenant')->slug !== 'lv') {
return redirect('/admin')->with('message', 'Diese Funktion ist nur auf LV-Ebene verfügbar.');
}
return $next($request);
}
}