File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -14,30 +14,8 @@ class AppServiceProvider extends ServiceProvider
14
14
*/
15
15
public function boot ()
16
16
{
17
- \Blade::if ('respo_vente ' , function ()
18
- {
19
- return auth ()->check () && auth ()->user ()->est (Utilisateur::RESPO_VENTE );
20
- });
21
-
22
- \Blade::if ('respo_comm ' , function ()
23
- {
24
- return auth ()->check () && auth ()->user ()->est (Utilisateur::RESPO_COMM );
25
- });
26
-
27
- \Blade::if ('respo_adh ' , function ()
28
- {
29
- return auth ()->check () && auth ()->user ()->est (Utilisateur::RESPO_ADH );
30
- });
31
-
32
- \Blade::if ('adherent ' , function ()
33
- {
34
- return auth ()->check () && auth ()->user ()->est (Utilisateur::ADHERENT );
35
- });
36
-
37
- \Blade::if ('admin ' , function ()
38
- {
39
- return auth ()->check () && auth ()->user ()->est (Utilisateur::ADMIN );
40
- });
17
+ if (config ("app.force_ssl " ))
18
+ \URL ::forceScheme ('https ' );
41
19
42
20
\Blade::setEchoFormat ('nl2br(e(%s)) ' );
43
21
}
Original file line number Diff line number Diff line change 228
228
229
229
],
230
230
231
+ 'force_ssl ' => env ('APP_FORCE_SSL ' , false ),
231
232
];
You can’t perform that action at this time.
0 commit comments