Working on app structure.
This commit is contained in:
37
app/providers/FilterServiceProvider.php
Normal file
37
app/providers/FilterServiceProvider.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php namespace Providers;
|
||||
|
||||
use Illuminate\Routing\FilterServiceProvider as ServiceProvider;
|
||||
|
||||
class FilterServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* The filters that should run before all requests.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $before = [
|
||||
'MaintenanceFilter',
|
||||
];
|
||||
|
||||
/**
|
||||
* The filters that should run after all requests.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $after = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* All available route filters.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $filters = [
|
||||
'auth' => 'AuthFilter',
|
||||
'auth.basic' => 'BasicAuthFilter',
|
||||
'csrf' => 'CsrfFilter',
|
||||
'guest' => 'GuestFilter',
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user