Eloquent Model for the password_resets table
laravel-password-reset-model contains an Eloquent model for the
password_resets table as created by the default Larvel installation.
$ composer require repat/laravel-password-reset-model
All fields are fillable (
$guarded = ).
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
$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
- MIT, see LICENSE
- Version 0.1.1