A CRUD Generator Package For Laravel, Make a CRUD Faster

If you found CRUDBooster Helpful, Amazing, and Awesome, please share to 1.5K Facebook 1K Twitter

admin, saat jalankan perintah : php artisan cbapps:install muncul error kayak ini : # php artisan cbapps:install CB APPS INSTALLATION Migrating the tables... Migration table created successfully. In Connection.php line 647: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes (SQL: alter table `trans` add index `c ustomers_code`(`customers_code`)) In PDOStatement.php line 107: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes In PDOStatement.php line 105: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes

wikan wiratmoko

User

Add comment to this question

As outlined in the Migrations guide to fix this all you have to do is edit your AppServiceProvider.php file and inside the boot method set a default string length:

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}



Answered by istiak ahmed at Nov, 18 2018 03:50

Add comment to this answer

Answer This Question