Answer the question
In order to leave comments, you need to log in
What is cascade, in ->onDelete('cascade')?
There is an example in the doc:
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question