Added support for older MySQL versions.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\CustomValidator;
|
||||
use Validator;
|
||||
@@ -18,6 +19,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
Validator::resolver(function ($translator, $data, $rules, $messages) {
|
||||
return new CustomValidator($translator, $data, $rules, $messages);
|
||||
});
|
||||
|
||||
// Set default string length in order to run on older versions of MySQL
|
||||
Schema::defaultStringLength(191);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user