Add new version in repository
This commit is contained in:
20
app/Models/Core/Auth/PasswordReset.php
Normal file
20
app/Models/Core/Auth/PasswordReset.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Core\Auth;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PasswordReset extends Model
|
||||
{
|
||||
protected $table = 'password_resets';
|
||||
|
||||
public function scopeByToken($query, $token)
|
||||
{
|
||||
return $query->where('token', $token);
|
||||
}
|
||||
|
||||
public function scopeByEmail($query, $email)
|
||||
{
|
||||
return $query->where('email', $email);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user