Category Translations Seeder Updated
This commit is contained in:
parent
2336790ffc
commit
2ef68427aa
|
|
@ -7,7 +7,7 @@ use Illuminate\Database\Seeder;
|
|||
use Webkul\Category\Repositories\CategoryRepository;
|
||||
|
||||
/*
|
||||
* CategoryBulkTableSeeder
|
||||
* Category bulk table seeder.
|
||||
*
|
||||
* Command: php artisan db:seed --class=Webkul\\Category\\Database\\Seeders\\CategoryBulkTableSeeder
|
||||
*
|
||||
|
|
@ -22,8 +22,7 @@ class CategoryBulkTableSeeder extends Seeder
|
|||
public function __construct(
|
||||
Faker $faker,
|
||||
CategoryRepository $categoryRepository
|
||||
)
|
||||
{
|
||||
) {
|
||||
$this->faker = $faker;
|
||||
$this->categoryRepository = $categoryRepository;
|
||||
}
|
||||
|
|
@ -53,4 +52,4 @@ class CategoryBulkTableSeeder extends Seeder
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,15 @@
|
|||
|
||||
namespace Webkul\Category\Database\Seeders;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/*
|
||||
* Category table seeder.
|
||||
*
|
||||
* Command: php artisan db:seed --class=Webkul\\Category\\Database\\Seeders\\CategoryTableSeeder
|
||||
*/
|
||||
class CategoryTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
|
|
@ -32,7 +37,6 @@ class CategoryTableSeeder extends Seeder
|
|||
|
||||
DB::table('category_translations')->insert([
|
||||
[
|
||||
'id' => '1',
|
||||
'name' => 'Root',
|
||||
'slug' => 'root',
|
||||
'description' => 'Root',
|
||||
|
|
@ -41,7 +45,47 @@ class CategoryTableSeeder extends Seeder
|
|||
'meta_keywords' => '',
|
||||
'category_id' => '1',
|
||||
'locale' => 'en',
|
||||
],
|
||||
[
|
||||
'name' => 'Raíz',
|
||||
'slug' => 'root',
|
||||
'description' => 'Raíz',
|
||||
'meta_title' => '',
|
||||
'meta_description' => '',
|
||||
'meta_keywords' => '',
|
||||
'category_id' => '1',
|
||||
'locale' => 'es',
|
||||
],
|
||||
[
|
||||
'name' => 'Racine',
|
||||
'slug' => 'root',
|
||||
'description' => 'Racine',
|
||||
'meta_title' => '',
|
||||
'meta_description' => '',
|
||||
'meta_keywords' => '',
|
||||
'category_id' => '1',
|
||||
'locale' => 'fr',
|
||||
],
|
||||
[
|
||||
'name' => 'Wortel',
|
||||
'slug' => 'root',
|
||||
'description' => 'Wortel',
|
||||
'meta_title' => '',
|
||||
'meta_description' => '',
|
||||
'meta_keywords' => '',
|
||||
'category_id' => '1',
|
||||
'locale' => 'nl',
|
||||
],
|
||||
[
|
||||
'name' => 'Kök',
|
||||
'slug' => 'root',
|
||||
'description' => 'Kök',
|
||||
'meta_title' => '',
|
||||
'meta_description' => '',
|
||||
'meta_keywords' => '',
|
||||
'category_id' => '1',
|
||||
'locale' => 'tr',
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue