27 lines
721 B
PHP
27 lines
721 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\Buildplate as Type;
|
|
|
|
class BuildplateSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Create Predefined Filament Types
|
|
$buildplates = [
|
|
['name' => 'SuperTrack', 'description' => 'Standard BuildPlate.', 'manufacturer_id' => 1, 'temp_max' => '250'],
|
|
['name' => 'Smooth PEI', 'description' => 'Standard BuildPlate.', 'manufacturer_id' => 1, 'temp_max' => '250'],
|
|
];
|
|
|
|
foreach ($buildplates as $buildplate) {
|
|
Type::create($buildplate);
|
|
}
|
|
}
|
|
}
|