Skip to content

Commit

Permalink
Rename middleware to more "action" words.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 11, 2014
1 parent d2aebd2 commit ca2f022
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Routing\Middleware;

class Authenticated implements Middleware {
class Authenticate implements Middleware {

/**
* The Guard implementation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Http\RedirectResponse;
use Illuminate\Contracts\Routing\Middleware;

class IsGuest implements Middleware {
class RedirectIfAuthenticated implements Middleware {

/**
* The Guard implementation.
Expand Down
6 changes: 3 additions & 3 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class RouteServiceProvider extends ServiceProvider {
* @var array
*/
protected $middleware = [
'auth' => 'App\Http\Middleware\Authenticated',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticatedWithBasicAuth',
'guest' => 'App\Http\Middleware\IsGuest',
'auth' => 'App\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
];

/**
Expand Down

0 comments on commit ca2f022

Please sign in to comment.