Skip to content

Instantly share code, notes, and snippets.

@rawaby88
Created October 29, 2017 19:13
Show Gist options
  • Save rawaby88/2ef9717a265a147463ce2e6a75afbde3 to your computer and use it in GitHub Desktop.
Save rawaby88/2ef9717a265a147463ce2e6a75afbde3 to your computer and use it in GitHub Desktop.
forien key #migration
$table->string('appointment_id');
$table->foreign('appointment_id')->references('appointment_id')->on('appointments')->onDelete('cascade');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment