Answers for "$table->foreign Id('user_id')->constraint()->on Delete('cascade');"

PHP
3

cascade in laravel migration

$table->dropForeign('answers_user_id_foreign');
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade');
Posted by: Guest on December-18-2020

Code answers related to "$table->foreign Id('user_id')->constraint()->on Delete('cascade');"

Browse Popular Code Answers by Language