Created
May 10, 2019 08:43
-
-
Save Sean-Spallen/015725541ca0738a50a8b2a167ba6ba0 to your computer and use it in GitHub Desktop.
Laravel - Migrate Up Function
This file contains 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
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