Issues (20)

app/Providers/AppServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\Facades\URL;
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register any application services.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        //
18
    }
19
20
     /**
21
     * Bootstrap any application services.
22
     *
23
     * @return void
24
     */
25
    public function boot()
26
    {
27
        //
28
        if((\App::environment('dev')) |  (\App::environment('stage')) | (\App::environment('prod'))) {
0 ignored issues
show
Are you sure you want to use the bitwise | or did you mean ||?
Loading history...
29
            URL::forceScheme('https');
30
        }
31
    }
32
}
33