@@ -7,67 +7,67 @@ |
||
7 | 7 | |
8 | 8 | class RouteServiceProvider extends ServiceProvider |
9 | 9 | { |
10 | - /** |
|
11 | - * This namespace is applied to your controller routes. |
|
12 | - * |
|
13 | - * In addition, it is set as the URL generator's root namespace. |
|
14 | - * |
|
15 | - * @var string |
|
16 | - */ |
|
17 | - protected $namespace = 'PiFinder\Http\Controllers'; |
|
10 | + /** |
|
11 | + * This namespace is applied to your controller routes. |
|
12 | + * |
|
13 | + * In addition, it is set as the URL generator's root namespace. |
|
14 | + * |
|
15 | + * @var string |
|
16 | + */ |
|
17 | + protected $namespace = 'PiFinder\Http\Controllers'; |
|
18 | 18 | |
19 | - /** |
|
20 | - * Define your route model bindings, pattern filters, etc. |
|
21 | - * |
|
22 | - * @return void |
|
23 | - */ |
|
24 | - public function boot() |
|
25 | - { |
|
26 | - // |
|
19 | + /** |
|
20 | + * Define your route model bindings, pattern filters, etc. |
|
21 | + * |
|
22 | + * @return void |
|
23 | + */ |
|
24 | + public function boot() |
|
25 | + { |
|
26 | + // |
|
27 | 27 | |
28 | - parent::boot(); |
|
29 | - } |
|
28 | + parent::boot(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Define the routes for the application. |
|
33 | - * |
|
34 | - * @return void |
|
35 | - */ |
|
36 | - public function map() |
|
37 | - { |
|
38 | - $this->mapApiRoutes(); |
|
31 | + /** |
|
32 | + * Define the routes for the application. |
|
33 | + * |
|
34 | + * @return void |
|
35 | + */ |
|
36 | + public function map() |
|
37 | + { |
|
38 | + $this->mapApiRoutes(); |
|
39 | 39 | |
40 | - $this->mapWebRoutes(); |
|
40 | + $this->mapWebRoutes(); |
|
41 | 41 | |
42 | - // |
|
43 | - } |
|
42 | + // |
|
43 | + } |
|
44 | 44 | |
45 | - /** |
|
46 | - * Define the "web" routes for the application. |
|
47 | - * |
|
48 | - * These routes all receive session state, CSRF protection, etc. |
|
49 | - * |
|
50 | - * @return void |
|
51 | - */ |
|
52 | - protected function mapWebRoutes() |
|
53 | - { |
|
54 | - Route::middleware('web') |
|
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
57 | - } |
|
45 | + /** |
|
46 | + * Define the "web" routes for the application. |
|
47 | + * |
|
48 | + * These routes all receive session state, CSRF protection, etc. |
|
49 | + * |
|
50 | + * @return void |
|
51 | + */ |
|
52 | + protected function mapWebRoutes() |
|
53 | + { |
|
54 | + Route::middleware('web') |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | + } |
|
58 | 58 | |
59 | - /** |
|
60 | - * Define the "api" routes for the application. |
|
61 | - * |
|
62 | - * These routes are typically stateless. |
|
63 | - * |
|
64 | - * @return void |
|
65 | - */ |
|
66 | - protected function mapApiRoutes() |
|
67 | - { |
|
68 | - Route::prefix('api') |
|
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
72 | - } |
|
59 | + /** |
|
60 | + * Define the "api" routes for the application. |
|
61 | + * |
|
62 | + * These routes are typically stateless. |
|
63 | + * |
|
64 | + * @return void |
|
65 | + */ |
|
66 | + protected function mapApiRoutes() |
|
67 | + { |
|
68 | + Route::prefix('api') |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | + } |
|
73 | 73 | } |
@@ -6,12 +6,12 @@ |
||
6 | 6 | |
7 | 7 | class EncryptCookies extends BaseEncrypter |
8 | 8 | { |
9 | - /** |
|
10 | - * The names of the cookies that should not be encrypted. |
|
11 | - * |
|
12 | - * @var array |
|
13 | - */ |
|
14 | - protected $except = [ |
|
15 | - // |
|
16 | - ]; |
|
9 | + /** |
|
10 | + * The names of the cookies that should not be encrypted. |
|
11 | + * |
|
12 | + * @var array |
|
13 | + */ |
|
14 | + protected $except = [ |
|
15 | + // |
|
16 | + ]; |
|
17 | 17 | } |