Laravel : Specified key was too long error | SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are…

Continue ReadingLaravel : Specified key was too long error | SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

How to migrate a particular table in laravel | Laravel Migrate Specific File(s) from Migrations

 First you should create one migration file for your table like:public function up() { Schema::create('test', function (Blueprint $table) { $table->increments('id'); $table->string('fname',255); $table->string('lname',255); $table->rememberToken(); $table->timestamps(); }); }php artisan migrate --path='databasemigrations2022_03_29_062120_file_name.php' 

Continue ReadingHow to migrate a particular table in laravel | Laravel Migrate Specific File(s) from Migrations