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
2893433b
Commit
2893433b
authored
Oct 06, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add application stack to app server provider.
parent
ab535170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+18
-5
No files found.
app/Providers/AppServiceProvider.php
View file @
2893433b
<?php
namespace
App\Providers
;
use
Illuminate\Routing\Router
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Routing\Stack\Builder
as
Stack
;
class
AppServiceProvider
extends
ServiceProvider
{
...
...
@@ -11,7 +13,22 @@ class AppServiceProvider extends ServiceProvider {
*/
public
function
boot
()
{
//
// This service provider is a convenient place to register your services
// in the IoC container. If you wish, you may make additional methods
// or service providers to keep the code more focused and granular.
$this
->
app
->
stack
(
function
(
Stack
$stack
,
Router
$router
)
{
return
$stack
->
middleware
(
'Illuminate\Cookie\Guard'
)
->
middleware
(
'Illuminate\Cookie\Queue'
)
->
middleware
(
'Illuminate\Session\Middlewares\Reader'
)
->
middleware
(
'Illuminate\Session\Middlewares\Writer'
)
->
then
(
function
(
$request
)
use
(
$router
)
{
return
$router
->
dispatch
(
$request
);
});
});
}
/**
...
...
@@ -21,10 +38,6 @@ class AppServiceProvider extends ServiceProvider {
*/
public
function
register
()
{
// This service provider is a convenient place to register your services
// in the IoC container. If you wish, you may make additional methods
// or service providers to keep the code more focused and granular.
//
}
...
...
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