Compare commits
No commits in common. "7e1f1184fe3c6330dc0abd678957c2008255a3dd" and "0ca5a445f5bd06b9a27f1ce26554b815a53d08f1" have entirely different histories.
7e1f1184fe
...
0ca5a445f5
|
@ -10,7 +10,7 @@ class HistoryObserver
|
|||
History::create([
|
||||
'model_id' => $model->id,
|
||||
'model_name' => $model->getTable(),
|
||||
'before' => [],
|
||||
'before' => null,
|
||||
'after' => $model->toArray(),
|
||||
'action' => HistoryAction::Insert,
|
||||
]);
|
||||
|
@ -33,7 +33,7 @@ class HistoryObserver
|
|||
'model_id' => $model->id,
|
||||
'model_name' => $model->getTable(),
|
||||
'before' => $model->getRawOriginal(),
|
||||
'after' => [],
|
||||
'after' => null,
|
||||
'action' => HistoryAction::Delete,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -16,11 +16,8 @@ class DatabaseSeeder extends Seeder
|
|||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'last_name' => fake()->lastName,
|
||||
'name' => fake()->name,
|
||||
'middle_name' => fake()->name(),
|
||||
'phone' => fake()->unique()->phoneNumber,
|
||||
'email' => fake()->unique()->safeEmail,
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue