From 4e197ba8466ac4b75cf27ad0c0b7209ff8cd4d67 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Mon, 17 Sep 2018 08:09:20 -0500 Subject: [PATCH] Including schema to avoid DB error on hostgator --- app/Providers/AppServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 35471f6..958e07b 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -3,6 +3,7 @@ namespace App\Providers; use Illuminate\Support\ServiceProvider; +use Illuminate\Support\Facades\Schema; class AppServiceProvider extends ServiceProvider { @@ -13,6 +14,7 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { + Schema::defaultStringLength(191); //Solved by increasing StringLength // }