vendredi 30 septembre 2016

Can't update data with foreign key enabled in laravel

I can't update data with foreign key enabled in laravel. I found nothing onUpdate('cascade') in laravel documentation.

$table->foreign('user_name')->references('name')->on('users')->onDelete('cascade');

How do I update/edit any information which constrained with foreign key?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire