Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
2542829d
Commit
2542829d
authored
Oct 20, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename auth middlewares.
parent
93b9415c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Authenticated.php
app/Http/Middleware/Authenticated.php
+1
-1
AuthenticatedWithBasicAuth.php
app/Http/Middleware/AuthenticatedWithBasicAuth.php
+1
-1
RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
+2
-2
No files found.
app/Http/Middleware/
LoggedIn
.php
→
app/Http/Middleware/
Authenticated
.php
View file @
2542829d
...
@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
...
@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\ResponseFactory
;
use
Illuminate\Contracts\Routing\ResponseFactory
;
class
LoggedIn
implements
Middleware
{
class
Authenticated
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Http/Middleware/
LoggedIn
WithBasicAuth.php
→
app/Http/Middleware/
Authenticated
WithBasicAuth.php
View file @
2542829d
...
@@ -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
LoggedIn
WithBasicAuth
implements
Middleware
{
class
Authenticated
WithBasicAuth
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Providers/RouteServiceProvider.php
View file @
2542829d
...
@@ -22,8 +22,8 @@ class RouteServiceProvider extends ServiceProvider {
...
@@ -22,8 +22,8 @@ class RouteServiceProvider extends ServiceProvider {
* @var array
* @var array
*/
*/
protected
$middleware
=
[
protected
$middleware
=
[
'auth'
=>
'App\Http\Middleware\
LoggedIn
'
,
'auth'
=>
'App\Http\Middleware\
Authenticated
'
,
'auth.basic'
=>
'App\Http\Middleware\
LoggedIn
WithBasicAuth'
,
'auth.basic'
=>
'App\Http\Middleware\
Authenticated
WithBasicAuth'
,
'csrf'
=>
'App\Http\Middleware\VerifyCsrfToken'
,
'csrf'
=>
'App\Http\Middleware\VerifyCsrfToken'
,
'guest'
=>
'App\Http\Middleware\IsGuest'
,
'guest'
=>
'App\Http\Middleware\IsGuest'
,
];
];
...
...
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