Files
exchange/app/Providers/AppServiceProvider.php
T
jack 06aa931eb5 added wait for mysql to start in docker
fix role not found on register/login
2018-05-14 12:45:30 +08:00

38 lines
758 B
PHP

<?php
namespace App\Providers;
use Laravel\Dusk\DuskServiceProvider;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
/*
if ($this->app->runningUnitTests()) {
Schema::defaultStringLength(191);
}
*/
Schema::defaultStringLength(191);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
}
}
}