Answers for "laravel ondelete optooms"

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
3

laravel migration on delete set null

$table->...->onDelete('set null');
Posted by: Guest on April-22-2020

Code answers related to "laravel ondelete optooms"

Browse Popular Code Answers by Language