Let route names and tables move, and add manager:import
This commit is contained in:
1 parent
984024eb85
commit
60ad85a621
45 files changed
+491
-73
No files matched your search
@@ -4,6 +4,7 @@ namespace IriksIT\Manager\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use IriksIT\Manager\Support\Names;
|
||||
use IriksIT\Manager\Support\Shell;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
@@ -22,7 +23,7 @@ class ServeShell
|
||||
|
||||
$name = (string) $request->route()?->getName();
|
||||
|
||||
if ($name === 'manager.assets' || str_ends_with($name, '.export')) {
|
||||
if ($name === Names::route('assets') || str_ends_with($name, '.export')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user