Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
ca2f0228
Commit
ca2f0228
authored
Nov 11, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename middleware to more "action" words.
parent
d2aebd28
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/Http/Middleware/Authenticate.php
+1
-1
app/Http/Middleware/RedirectIfAuthenticated.php
+1
-1
app/Providers/RouteServiceProvider.php
+3
-3
No files found.
app/Http/Middleware/Authenticate
d
.php
→
app/Http/Middleware/Authenticate.php
View file @
ca2f0228
...
@@ -4,7 +4,7 @@ use Closure;
...
@@ -4,7 +4,7 @@ use Closure;
use
Illuminate\Contracts\Auth\Guard
;
use
Illuminate\Contracts\Auth\Guard
;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\Middleware
;
class
Authenticate
d
implements
Middleware
{
class
Authenticate
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Http/Middleware/
IsGuest
.php
→
app/Http/Middleware/
RedirectIfAuthenticated
.php
View file @
ca2f0228
...
@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
...
@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
use
Illuminate\Http\RedirectResponse
;
use
Illuminate\Http\RedirectResponse
;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\Middleware
;
class
IsGuest
implements
Middleware
{
class
RedirectIfAuthenticated
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Providers/RouteServiceProvider.php
View file @
ca2f0228
...
@@ -11,9 +11,9 @@ class RouteServiceProvider extends ServiceProvider {
...
@@ -11,9 +11,9 @@ class RouteServiceProvider extends ServiceProvider {
* @var array
* @var array
*/
*/
protected
$middleware
=
[
protected
$middleware
=
[
'auth'
=>
'App\Http\Middleware\Authenticate
d
'
,
'auth'
=>
'App\Http\Middleware\Authenticate'
,
'auth.basic'
=>
'Illuminate\Auth\Middleware\Authenticate
d
WithBasicAuth'
,
'auth.basic'
=>
'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth'
,
'guest'
=>
'App\Http\Middleware\
IsGuest
'
,
'guest'
=>
'App\Http\Middleware\
RedirectIfAuthenticated
'
,
];
];
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment