byos_laravel/database/seeders/DatabaseSeeder.php
Benjamin Nussbaum f530875210 fix(#12): correct mispelled word recipe
fix(#12): correct mispelled word recipe
2025-04-26 14:59:28 +02:00

40 lines
917 B
PHP

<?php
namespace Database\Seeders;
use App\Models\Device;
use App\Models\Plugin;
use App\Models\User;
use Illuminate\Database\Seeder;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
if (app()->isLocal()) {
User::factory()->create([
'name' => 'Test User',
'email' => 'admin@example.com',
'password' => bcrypt('admin@example.com'),
]);
Device::factory(1)->create([
'mac_address' => '00:00:00:00:00:00',
'api_key' => 'test-api-key',
]);
// Device::factory(5)->create();
// Plugin::factory(3)->create();
$this->call([
ExampleRecipesSeeder::class,
]);
}
}
}