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);
}