Skip to content

Suggestion to modify the user seeder #29

@ovillafuerte94

Description

@ovillafuerte94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions