Discussion

Admin page don'r work

ErrorExceptionIllegal offset type in isset or empty

Nurken
Nurken
4 months ago

Illuminate\Foundation\Bootstrap\HandleExceptions::handleError

vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php:87


 protected function resolve($name)
    {
        $config = $this->getConfig($name);
 
        if (is_null($config)) {
            throw new InvalidArgumentException("Auth guard [{$name}] is not defined.");
        }
 
        if (isset($this->customCreators[$config['driver']])) {
            return $this->callCustomCreator($name, $config);
        }
 
        $driverMethod = 'create'.ucfirst($config['driver']).'Driver';
 
        if (method_exists($this, $driverMethod)) {
            return $this->{$driverMethod}($name, $config);
        }
 
        throw new InvalidArgumentException(
            "Auth driver [{$config['driver']}] for guard [{$name}] is not defined."
        );
    }


Pedro Martins
Pedro Martins
3 months ago

Make sure you only have these 3 files under /your-project/bootstrap/cache

Nurken
Nurken
3 months ago

Thanks, everything works, the problem was that it cached config.php and I just deleted it all worked.

Want to contribute?

© AvoRed 2020 Privacy