| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class UploadRouteServiceProvider extends RouteServiceProvider |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * This namespace is applied to your controller routes. |
||
| 17 | * In addition, it is set as the URL generator's root namespace. |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $namespace = 'Itstructure\MFU\Http\Controllers'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Define your route model bindings, pattern filters, etc. |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function boot() |
||
| 27 | { |
||
| 28 | parent::boot(); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Define the routes for the application. |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function map() |
||
| 36 | { |
||
| 37 | $this->mapWebRoutes(); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Define the "web" routes for the application. |
||
| 42 | * These routes all receive session state, CSRF protection, etc. |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | protected function mapWebRoutes() |
||
| 46 | { |
||
| 47 | Route::middleware('web') |
||
| 48 | ->namespace($this->namespace) |
||
| 49 | ->group($this->getRoutesFile()); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get routes file. |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | private function getRoutesFile() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |