Answers for "how set cascade on delete and update in same time in laravel"

C#
0

how set cascade on delete and update in same time in laravel

$table->foreign('user_id')->references('id')->on('users')
->onDelete('SET NULL')
->onUpdate('SET NULL'); // also available CASCADE, RESTRICT, DO NOTHING, NO ACTION
Posted by: Guest on July-22-2021

Code answers related to "how set cascade on delete and update in same time in laravel"

C# Answers by Framework

Browse Popular Code Answers by Language