OLA TUDO BEM ESSA ESTRUTURA DE DADOS É A MESMA DO PROJETO 3.0 QUE FOI FEITO COM SLIM
NESSE PROJETO USANDO A VERSÃO 3.8 DA ERRO NO MIDDLEWARE
Slim Application Error
The application could not run because of the following error:
Details
Type: RuntimeException
Message: Callable App\Middleware\Admin\AuthMiddleware does not exist
File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\CallableResolver.php
Line: 90
Trace
#0 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\CallableResolver.php(67): Slim\CallableResolver->resolveCallable(‘App\Middleware…’)
#1 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\CallableResolverAwareTrait.php(45): Slim\CallableResolver->resolve(‘App\Middleware…’)
#2 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\DeferredCallable.php(36): Slim\DeferredCallable->resolveCallable(‘App\Middleware…’)
#3 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#4 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#5 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(122): Slim\Route->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\Route.php(316): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\App.php(476): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(122): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\App.php(370): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\vendor\slim\slim\Slim\App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\SIGA\public\index.php(71): Slim\App->run()
#12 {main}