Laravel-Livewire-StarterKit-TALL-stack icon indicating copy to clipboard operation
Laravel-Livewire-StarterKit-TALL-stack copied to clipboard

Suggestion to modify the user seeder

Open ovillafuerte94 opened this issue 2 years ago • 0 comments

Every time you create or update a record in the model, Laravel will automatically update the created_at and updated_at fields because Eloquent's create method automatically adds timestamps for those fields.

The following lines could be withdrawn

https://github.com/cluzstudio/Laravel-Livewire-StarterKit-TALL-stack/blob/0d3400ff501d4e122905221a8af548d92352f3c1/database/seeders/UserSeeder.php#L22-L23

ovillafuerte94 avatar Sep 03 '22 07:09 ovillafuerte94