fixed filament.blade.php
This commit is contained in:
@@ -23,11 +23,11 @@ class DatabaseSeeder extends Seeder
|
||||
'password' => bcrypt('password')
|
||||
]);
|
||||
|
||||
$this ->call(
|
||||
$this ->call([
|
||||
ColorSeeder::class,
|
||||
ManufacturerSeeder::class
|
||||
);
|
||||
|
||||
|
||||
ManufacturerSeeder::class,
|
||||
FilamentTypeSeeder::class
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\FilamentType as Type;
|
||||
|
||||
class FilamentTypeSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// Create Predefined Filament Types
|
||||
$filamentTypes = [
|
||||
['name' => 'PLA', 'description' => 'Standard filament type.'],
|
||||
['name' => 'PETG', 'description' => 'Premium filament type.'],
|
||||
];
|
||||
|
||||
foreach ($filamentTypes as $filamentType) {
|
||||
Type::create($filamentType);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,8 @@ class ManufacturerSeeder extends Seeder
|
||||
{
|
||||
// Create predefined Manufacturers
|
||||
$manufacturers = [
|
||||
['name' => 'Bambulab', 'description' => 'Bambulab is a manufacturer of high quality products.', 'website' => 'https://bambulab.com', 'logo' => 'https://example.com/bambulab-logo.png']
|
||||
['name' => 'Bambulab', 'description' => 'Bambulab is a manufacturer of high quality products.', 'website' => 'https://bambulab.com', 'logo' => ''],
|
||||
['name' => 'Sunlu', 'description' => 'Sunlu is a manufacturer of high quality products.', 'website' => 'https://sunlu.com', 'logo' => '']
|
||||
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user