Skip to content

Instantly share code, notes, and snippets.

@mitrallex
Last active December 1, 2018 08:07
Show Gist options
  • Save mitrallex/717d55352068415b71b74acfaa059691 to your computer and use it in GitHub Desktop.
Save mitrallex/717d55352068415b71b74acfaa059691 to your computer and use it in GitHub Desktop.
laravel-file-hosting
public function up()
{
Schema::create('files', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->unique();
$table->string('type');
$table->string('extension');
$table->integer('user_id')->unsigned();;
$table->timestamps();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
});
}
@boskee
Copy link

boskee commented Dec 1, 2018

There's two semicolons on line 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment