mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 20:34:08 +00:00
39 lines
759 B
PHP
39 lines
759 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);
|
|
}
|
|
}
|
|
}
|