diff --git a/src/Providers/RouteServiceProvider.php b/src/Providers/RouteServiceProvider.php index 9785c53..44f2ddc 100644 --- a/src/Providers/RouteServiceProvider.php +++ b/src/Providers/RouteServiceProvider.php @@ -9,7 +9,7 @@ * @package Arcanedev\Support\Laravel\Providers * @author ARCANEDEV * - * @method \Illuminate\Contracts\Routing\Registrar middleware(\string $name, \string $class) + * @method \Illuminate\Contracts\Routing\Registrar aliasMiddleware(\string $name, \string $class) */ abstract class RouteServiceProvider extends ServiceProvider { diff --git a/src/Routing/RouteRegistrar.php b/src/Routing/RouteRegistrar.php index 239220b..7c65e8b 100644 --- a/src/Routing/RouteRegistrar.php +++ b/src/Routing/RouteRegistrar.php @@ -191,4 +191,16 @@ public function model($key, $class, Closure $callback = null) { $this->router->model($key, $class, $callback); } + + /** + * Clear the attributes. + * + * @return self + */ + public function clear() + { + $this->attributes = []; + + return $this; + } }