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
93b9415c
Commit
93b9415c
authored
Oct 20, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update middleware.
parent
5ecc099e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
+17
-17
Kernel.php
app/Http/Kernel.php
+7
-7
IsGuest.php
app/Http/Middleware/IsGuest.php
+1
-1
LoggedIn.php
app/Http/Middleware/LoggedIn.php
+1
-1
LoggedInWithBasicAuth.php
app/Http/Middleware/LoggedInWithBasicAuth.php
+1
-1
UnderMaintenance.php
app/Http/Middleware/UnderMaintenance.php
+1
-1
ValidateCsrfToken.php
app/Http/Middleware/ValidateCsrfToken.php
+2
-2
RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
+4
-4
No files found.
app/Http/Kernel.php
View file @
93b9415c
...
@@ -11,13 +11,13 @@ class Kernel extends HttpKernel {
...
@@ -11,13 +11,13 @@ class Kernel extends HttpKernel {
* @var array
* @var array
*/
*/
protected
$middleware
=
[
protected
$middleware
=
[
'App\Http\Middleware\
MaintenanceMiddlewar
e'
,
'App\Http\Middleware\
UnderMaintenanc
e'
,
'Illuminate\Cookie\Middleware\
Guard
'
,
'Illuminate\Cookie\Middleware\
EncryptCookies
'
,
'Illuminate\Cookie\Middleware\
Queue
'
,
'Illuminate\Cookie\Middleware\
AddQueuedCookiesToRequest
'
,
'Illuminate\Session\Middleware\Read
er
'
,
'Illuminate\Session\Middleware\Read
Session
'
,
'Illuminate\Session\Middleware\Write
r
'
,
'Illuminate\Session\Middleware\Write
Session
'
,
'Illuminate\View\Middleware\
ErrorBinder
'
,
'Illuminate\View\Middleware\
ShareErrorsFromSession
'
,
'App\Http\Middleware\
CsrfMiddleware
'
,
'App\Http\Middleware\
ValidateCsrfToken
'
,
];
];
/**
/**
...
...
app/Http/Middleware/
GuestMiddleware
.php
→
app/Http/Middleware/
IsGuest
.php
View file @
93b9415c
...
@@ -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
GuestMiddleware
implements
Middleware
{
class
IsGuest
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Http/Middleware/
AuthMiddleware
.php
→
app/Http/Middleware/
LoggedIn
.php
View file @
93b9415c
...
@@ -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
AuthMiddleware
implements
Middleware
{
class
LoggedIn
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Http/Middleware/
BasicAuthMiddleware
.php
→
app/Http/Middleware/
LoggedInWithBasicAuth
.php
View file @
93b9415c
...
@@ -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
BasicAuthMiddleware
implements
Middleware
{
class
LoggedInWithBasicAuth
implements
Middleware
{
/**
/**
* The Guard implementation.
* The Guard implementation.
...
...
app/Http/Middleware/
MaintenanceMiddlewar
e.php
→
app/Http/Middleware/
UnderMaintenanc
e.php
View file @
93b9415c
...
@@ -5,7 +5,7 @@ use Illuminate\Http\Response;
...
@@ -5,7 +5,7 @@ use Illuminate\Http\Response;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Foundation\Application
;
use
Illuminate\Contracts\Foundation\Application
;
class
MaintenanceMiddlewar
e
implements
Middleware
{
class
UnderMaintenanc
e
implements
Middleware
{
/**
/**
* The application implementation.
* The application implementation.
...
...
app/Http/Middleware/
CsrfMiddleware
.php
→
app/Http/Middleware/
ValidateCsrfToken
.php
View file @
93b9415c
...
@@ -4,7 +4,7 @@ use Closure;
...
@@ -4,7 +4,7 @@ use Closure;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Session\TokenMismatchException
;
use
Illuminate\Session\TokenMismatchException
;
class
CsrfMiddleware
implements
Middleware
{
class
ValidateCsrfToken
implements
Middleware
{
/**
/**
* Handle an incoming request.
* Handle an incoming request.
...
@@ -12,7 +12,7 @@ class CsrfMiddleware implements Middleware {
...
@@ -12,7 +12,7 @@ class CsrfMiddleware implements Middleware {
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param \Closure $next
* @return mixed
* @return mixed
*
*
* @throws TokenMismatchException
* @throws TokenMismatchException
*/
*/
public
function
handle
(
$request
,
Closure
$next
)
public
function
handle
(
$request
,
Closure
$next
)
...
...
app/Providers/RouteServiceProvider.php
View file @
93b9415c
...
@@ -22,10 +22,10 @@ class RouteServiceProvider extends ServiceProvider {
...
@@ -22,10 +22,10 @@ class RouteServiceProvider extends ServiceProvider {
* @var array
* @var array
*/
*/
protected
$middleware
=
[
protected
$middleware
=
[
'auth'
=>
'App\Http\Middleware\
AuthMiddleware
'
,
'auth'
=>
'App\Http\Middleware\
LoggedIn
'
,
'auth.basic'
=>
'App\Http\Middleware\
BasicAuthMiddleware
'
,
'auth.basic'
=>
'App\Http\Middleware\
LoggedInWithBasicAuth
'
,
'csrf'
=>
'App\Http\Middleware\
CsrfMiddleware
'
,
'csrf'
=>
'App\Http\Middleware\
VerifyCsrfToken
'
,
'guest'
=>
'App\Http\Middleware\
GuestMiddleware
'
,
'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