Skip to content

repat/laravel-password-reset-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-password-reset-model

Latest Version on Packagist Total Downloads

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

Version

  • Version 0.4

Contact

repat

Flattr this git repo

About

Laravel Eloquent Model for password_resets table

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages