Skip to content

Commit

Permalink
Fixing the RouteRegister
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Feb 2, 2017
1 parent 7a644f7 commit 76e08a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @package Arcanedev\Support\Laravel\Providers
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
*
* @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
{
Expand Down
12 changes: 12 additions & 0 deletions src/Routing/RouteRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 76e08a7

Please sign in to comment.