I got Method Illuminate\Routing\Router::uniqueMiddleware does not exist. after I run php artisan to create migration table

Viewed 231

Exception: BadMethodCallException Method Illuminate\Routing\Router::uniqueMiddleware does not exist.

laravel given solution:

Bad Method Call Did you mean Illuminate\Routing\Router::getMiddleware() ?

StackTrack

Illuminate\Routing\Router::__callStatic vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php:77


public static function __callStatic($method, $parameters)

{

    if (! static::hasMacro($method)) {

        throw new BadMethodCallException(sprintf(

            'Method %s::%s does not exist.', static::class, $method

        ));

    }



    $macro = static::$macros[$method];



    if ($macro instanceof Closure) {

        $macro = $macro->bindTo(null, static::class);

    }



    return $macro(...$parameters);

}
0 Answers
Related