Skip to content

Instantly share code, notes, and snippets.

@Sean-Spallen
Created May 10, 2019 08:43
Show Gist options
  • Save Sean-Spallen/015725541ca0738a50a8b2a167ba6ba0 to your computer and use it in GitHub Desktop.
Save Sean-Spallen/015725541ca0738a50a8b2a167ba6ba0 to your computer and use it in GitHub Desktop.
Laravel - Migrate Up Function
public function up()
{
Schema::create('groceries', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('type');
$table->integer('price');
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment