simple DataFactory
This commit is contained in:
@ -22,16 +22,18 @@ class DatabaseSeeder extends Seeder
|
||||
// 'email' => 'test@example.com',
|
||||
// ]);
|
||||
|
||||
Device::factory()->create([
|
||||
'device_id' => '1',
|
||||
'title' => 'Test Device One',
|
||||
'device_type' => 'type1',
|
||||
'description' => 'des',
|
||||
'accessories' => 'acc',
|
||||
'rz_username_buyer' => 'rzb',
|
||||
'serial_number' => '123',
|
||||
'image_url' => 'www.url.de'
|
||||
]);
|
||||
Device::factory(2)->create();
|
||||
|
||||
//Device::factory()->create([
|
||||
// 'device_id' => '1',
|
||||
// 'title' => 'Test Device One',
|
||||
// 'device_type' => 'type1',
|
||||
// 'description' => 'des',
|
||||
// 'accessories' => 'acc',
|
||||
// 'rz_username_buyer' => 'rzb',
|
||||
// 'serial_number' => '123',
|
||||
// 'image_url' => 'www.url.de'
|
||||
//]);
|
||||
|
||||
//User::create([
|
||||
// [
|
||||
|
Reference in New Issue
Block a user