Answers for "foreign key nullable in laravel"

PHP
0

foreign key nullable in laravel

$table
      ->foreignId('other_table_id')
      ->nullable() // here
      ->references('id')
      ->on('other_table');
Posted by: Guest on October-01-2021

Code answers related to "foreign key nullable in laravel"

Browse Popular Code Answers by Language