2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
2021-06-10 13:15:52 -07:00
|
|
|
|
2021-06-10 13:18:00 -07:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
use App\Models\Category;
|
2021-06-10 13:15:52 -07:00
|
|
|
use Illuminate\Database\Seeder;
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
class CategorySeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
Category::truncate();
|
2017-10-07 02:27:02 -07:00
|
|
|
|
2021-06-10 13:17:44 -07:00
|
|
|
Category::factory()->count(1)->assetLaptopCategory()->create(); // 1
|
|
|
|
Category::factory()->count(1)->assetDesktopCategory()->create(); // 2
|
|
|
|
Category::factory()->count(1)->assetTabletCategory()->create(); // 3
|
|
|
|
Category::factory()->count(1)->assetMobileCategory()->create(); // 4
|
|
|
|
Category::factory()->count(1)->assetDisplayCategory()->create(); // 5
|
|
|
|
Category::factory()->count(1)->assetVoipCategory()->create(); // 6
|
|
|
|
Category::factory()->count(1)->assetConferenceCategory()->create(); // 7
|
|
|
|
Category::factory()->count(1)->accessoryKeyboardCategory()->create(); // 8
|
|
|
|
Category::factory()->count(1)->accessoryMouseCategory()->create(); // 9
|
|
|
|
Category::factory()->count(1)->consumablePaperCategory()->create(); // 10
|
|
|
|
Category::factory()->count(1)->consumableInkCategory()->create(); // 11
|
|
|
|
Category::factory()->count(1)->componentHddCategory()->create(); // 12
|
|
|
|
Category::factory()->count(1)->componentRamCategory()->create(); // 13
|
|
|
|
Category::factory()->count(1)->licenseGraphicsCategory()->create(); // 14
|
|
|
|
Category::factory()->count(1)->licenseOfficeCategory()->create(); // 15
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|
|
|
|
}
|