Created
May 3, 2019 18:44
-
-
Save Sean-Spallen/3aeea3702819f8b8ebee9438a89096bf to your computer and use it in GitHub Desktop.
Laravel - Migrate Up sample
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