Completed
Pull Request — master (#47)
by Şəhriyar
33:20
created

AppServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Support\ServiceProvider;
5
use Laravel\Dusk\DuskServiceProvider;
6
7
class AppServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        Schema::defaultStringLength(191);
17
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24
    public function register()
25
    {
26
        if (app()->environment('local', 'testing')) {
27
            app()->register(DuskServiceProvider::class);
28
        }
29
    }
30
}
31