V
V
VS2020-02-28 12:07:15
SQL
VS, 2020-02-28 12:07:15

What is cascade, in ->onDelete('cascade')?

There is an example in the doc:

$table->foreign('user_id')
      ->references('id')->on('users')
      ->onDelete('cascade');


What is 'cascade'? Through ctrl (in phpstorm) having fallen into the description, I understand that this is some kind of action.
What is this action? What other actions are there (I would be grateful for a link to the list of actions in the dock)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-02-28
@defect00

https://dev.mysql.com/doc/refman/8.0/en/create-tab...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question