@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'name' => 'Recipe' |
|
| 4 | + 'name' => 'Recipe' |
|
| 5 | 5 | ]; |
| 6 | 6 | \ No newline at end of file |
@@ -5,27 +5,27 @@ |
||
| 5 | 5 | |
| 6 | 6 | class CreateRecipeRecipesTable extends Migration |
| 7 | 7 | { |
| 8 | - /** |
|
| 9 | - * Run the migrations. |
|
| 10 | - * |
|
| 11 | - * @return void |
|
| 12 | - */ |
|
| 13 | - public function up() |
|
| 14 | - { |
|
| 15 | - Schema::create('recipe__recipes', function(Blueprint $table) { |
|
| 16 | - $table->engine = 'InnoDB'; |
|
| 8 | + /** |
|
| 9 | + * Run the migrations. |
|
| 10 | + * |
|
| 11 | + * @return void |
|
| 12 | + */ |
|
| 13 | + public function up() |
|
| 14 | + { |
|
| 15 | + Schema::create('recipe__recipes', function(Blueprint $table) { |
|
| 16 | + $table->engine = 'InnoDB'; |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->timestamps(); |
| 19 | - }); |
|
| 20 | - } |
|
| 19 | + }); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * Reverse the migrations. |
|
| 24 | - * |
|
| 25 | - * @return void |
|
| 26 | - */ |
|
| 27 | - public function down() |
|
| 28 | - { |
|
| 29 | - Schema::drop('recipe__recipes'); |
|
| 30 | - } |
|
| 22 | + /** |
|
| 23 | + * Reverse the migrations. |
|
| 24 | + * |
|
| 25 | + * @return void |
|
| 26 | + */ |
|
| 27 | + public function down() |
|
| 28 | + { |
|
| 29 | + Schema::drop('recipe__recipes'); |
|
| 30 | + } |
|
| 31 | 31 | } |
@@ -5,33 +5,33 @@ |
||
| 5 | 5 | |
| 6 | 6 | class CreateRecipeRecipeTranslationsTable extends Migration |
| 7 | 7 | { |
| 8 | - /** |
|
| 9 | - * Run the migrations. |
|
| 10 | - * |
|
| 11 | - * @return void |
|
| 12 | - */ |
|
| 13 | - public function up() |
|
| 14 | - { |
|
| 15 | - Schema::create('recipe__recipe_translations', function(Blueprint $table) { |
|
| 16 | - $table->engine = 'InnoDB'; |
|
| 8 | + /** |
|
| 9 | + * Run the migrations. |
|
| 10 | + * |
|
| 11 | + * @return void |
|
| 12 | + */ |
|
| 13 | + public function up() |
|
| 14 | + { |
|
| 15 | + Schema::create('recipe__recipe_translations', function(Blueprint $table) { |
|
| 16 | + $table->engine = 'InnoDB'; |
|
| 17 | 17 | $table->increments('id'); |
| 18 | - $table->string('name'); |
|
| 19 | - $table->text('content'); |
|
| 18 | + $table->string('name'); |
|
| 19 | + $table->text('content'); |
|
| 20 | 20 | |
| 21 | 21 | $table->integer('recipe_id')->unsigned(); |
| 22 | 22 | $table->string('locale')->index(); |
| 23 | 23 | $table->unique(['recipe_id', 'locale']); |
| 24 | 24 | $table->foreign('recipe_id')->references('id')->on('recipe__recipes')->onDelete('cascade'); |
| 25 | - }); |
|
| 26 | - } |
|
| 25 | + }); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Reverse the migrations. |
|
| 30 | - * |
|
| 31 | - * @return void |
|
| 32 | - */ |
|
| 33 | - public function down() |
|
| 34 | - { |
|
| 35 | - Schema::drop('recipe__recipe_translations'); |
|
| 36 | - } |
|
| 28 | + /** |
|
| 29 | + * Reverse the migrations. |
|
| 30 | + * |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 33 | + public function down() |
|
| 34 | + { |
|
| 35 | + Schema::drop('recipe__recipe_translations'); |
|
| 36 | + } |
|
| 37 | 37 | } |
@@ -5,16 +5,16 @@ |
||
| 5 | 5 | |
| 6 | 6 | class RecipeDatabaseSeeder extends Seeder { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * Run the database seeds. |
|
| 10 | - * |
|
| 11 | - * @return void |
|
| 12 | - */ |
|
| 13 | - public function run() |
|
| 14 | - { |
|
| 15 | - Model::unguard(); |
|
| 8 | + /** |
|
| 9 | + * Run the database seeds. |
|
| 10 | + * |
|
| 11 | + * @return void |
|
| 12 | + */ |
|
| 13 | + public function run() |
|
| 14 | + { |
|
| 15 | + Model::unguard(); |
|
| 16 | 16 | |
| 17 | - // $this->call("OthersTableSeeder"); |
|
| 18 | - } |
|
| 17 | + // $this->call("OthersTableSeeder"); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | 20 | } |
| 21 | 21 | \ No newline at end of file |