Home > Enterprise >  How to create a invisible column in mysql from laravel migration?
How to create a invisible column in mysql from laravel migration?

Time:01-12

Since MySQL 8.0.23 it supports an invisible column. But how do I create an invisible column from the Laravel migration file?

CodePudding user response:

You should be able to create it by adding invisible()

It has been added in this pr and it has been released in Laravel v8.76.0.

CodePudding user response:

Make the column "invisible" to SELECT * queries (MySQL).

  $table->string('foo')->invisible();
  •  Tags:  
  • Related