Skip to content

Column called password does not get added to fillable array #92

@MattHadfield113

Description

@MattHadfield113

After creating the basic user model, i have noticed that Password does not get added, in a default user model it gets created as -

    protected $fillable = [
        'name', 'email', 'password'
    ];

However using blueprint, we get the following -

    protected $fillable = [
        'name',
        'email',
        'is_active',
        'email_verified_at',
        'remember_token',
    ];

It also totally misses the hidden block in a normal user model -

    protected $hidden = [
        'password', 'remember_token'
    ];

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