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
1414 */
1515 public function boot ()
1616 {
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 ' );
4119
4220 \Blade::setEchoFormat ('nl2br(e(%s)) ' );
4321 }
Original file line number Diff line number Diff line change 228228
229229 ],
230230
231+ 'force_ssl ' => env ('APP_FORCE_SSL ' , false ),
231232];
You can’t perform that action at this time.
0 commit comments