Skip to content

Instantly share code, notes, and snippets.

@chadtomkiss
Last active October 29, 2017 10:47
Show Gist options
  • Save chadtomkiss/8807390 to your computer and use it in GitHub Desktop.
Save chadtomkiss/8807390 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
\$table->integer('${1}')->unsigned();
\$table->foreign('${1}')->references('${2:id}')->on('${3}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>your_key_here</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>Laravel Foreign Key Snippet</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment