Documentation and minor fixes

This commit is contained in:
dann4624
2022-09-28 11:33:50 +02:00
parent 2d04a269e6
commit 81ea1f10f9
11 changed files with 33 additions and 129 deletions
-19
View File
@@ -20,25 +20,6 @@ class ProductSeeder extends Seeder
public function run()
{
$items = [
[
'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id,
'product_subcategory_id' => ProductSubcategory::where('name','=','Server Rum')->first()->id,
'brand_id' => Brand::where('name','=','Test Brand')->first()->id,
'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id,
'name' => 'Test Product',
'description' => "Test Description",
'total' => 100,
'barcode' => "Test.Product.0001",
],
[
'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id,
'brand_id' => Brand::where('name','=','Test Brand')->first()->id,
'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id,
'name' => 'Test Product 2',
'description' => "Test Description 2",
'total' => 100,
'barcode' => "Test.Product.0002",
],
];
foreach ($items as $item) {
Product::create($item);