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?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2cQIR9v
via IFTTT

Aucun commentaire:

Enregistrer un commentaire