Last active
November 13, 2019 10:58
-
-
Save Sarav-S/6a77e1b9e06a0d90292d98e5aa5e8c96 to your computer and use it in GitHub Desktop.
Foreign Key Reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$table->foreign('user_id') | |
->references('id')->on('users') | |
->onUpdate('cascade') | |
->onDelete('cascade'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment