Answers for "nullable in laravel"

PHP
6

laravel migration remove column

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
Posted by: Guest on April-16-2020
1

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
1

integer nullable laravel

$table->integer('banner_id')->nullable()->unsigned();
Posted by: Guest on August-24-2020
2

migrations required field laravel

$table->string('foo')->nullable(false)->change();
Posted by: Guest on May-07-2020
3

laravel migration integer

$table->bigInteger('votes');
Posted by: Guest on May-22-2020

Browse Popular Code Answers by Language