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
43e8c60a
Commit
43e8c60a
authored
Oct 06, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write a base app service provider.
parent
d2937ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
33 deletions
+1
-33
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+1
-33
No files found.
app/Providers/AppServiceProvider.php
View file @
43e8c60a
<?php
namespace
App\Providers
;
use
Illuminate\Routing\Router
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Routing\Stack\Builder
as
Stack
;
use
Illuminate\Foundation\Support\Providers\AppServiceProvider
as
ServiceProvider
;
class
AppServiceProvider
extends
ServiceProvider
{
...
...
@@ -31,36 +31,4 @@ class AppServiceProvider extends ServiceProvider {
'Illuminate\Session\Middleware\Writer'
,
];
/**
* Bootstrap any necessary services.
*
* @return void
*/
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
(
$this
->
stack
)
->
then
(
function
(
$request
)
use
(
$router
)
{
return
$router
->
dispatch
(
$request
);
});
});
}
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
//
}
}
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