📌  相关文章
📜  laravel 7 eloquent on delete set null schema - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:42.698000             🧑  作者: Mango

代码示例3
$table->foreignId('user_id')
      ->constrained()
      ->onDelete('cascade');