From 49c08ec1f1ea1139d06511ff5bc734223ea311d2 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 7 Dec 2017 14:06:12 -0600 Subject: [PATCH] set default string length for migrations --- app/Providers/AppServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 1283cc60..34c80d18 100755 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,7 @@ namespace App\Providers; +use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; @@ -12,6 +13,8 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { + Schema::defaultStringLength(191); + # if there's a local.conf.php in the root, then merge that in if(file_exists(base_path('local.conf.php'))) { $local_conf = include(base_path('local.conf.php'));