repat / laravel-password-reset-model
Eloquent Model for the password_resets table
Installs: 9 239
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- laravel/framework: ^7.0|^8.0|^9.0|^10.0|^11.0
README
laravel-password-reset-model contains an Eloquent model for the password_resets
table as created by the default Larvel installation.
Installation
$ composer require repat/laravel-password-reset-model
Documentation
All fields are fillable ($guarded = []
).
Relationship / Attributes
If you've kept the standard FQCN for Laravels User Model (\App\Model\User::class
) you can use the ->user
relationship or extend this model and override the user()
method.
$passwordReset = \Repat\Laravel\PasswordReset::first(); // User $passwordReset->email; $passwordReset->user; // App\Models\User|null based on email, extend the relationship if you have a different FQCN $passwordReset->token; // string $passwordReset->created_at; // \Carbon\Carbon|null
License
- MIT, see LICENSE
Version
- Version 0.4
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123