Set up Database Migration Default String Length To set up the default string length for the database migration, go to app/Providers/AppServiceProvider.php and update the code with the following: use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema; // public function boot() { Schema::defaultStringLength(191); }