Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
MongoPasswordResetRepository
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getModelInstance
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3// app/Auth/MongoPasswordResetRepository.php
4
5namespace App\Auth;
6
7use App\Http\Models\UserPasswordReset;
8use Illuminate\Auth\Passwords\DatabaseTokenRepository;
9
10class MongoPasswordResetRepository extends DatabaseTokenRepository
11{
12    protected $model;
13
14    public function __construct($hasher, $key, $expire = 60)
15    {
16        parent::__construct($hasher, $this->getModelInstance(), $key, $expire);
17    }
18
19    protected function getModelInstance()
20    {
21        $model = new UserPasswordReset;
22
23        return $model->newQuery();
24    }
25
26    // Sobrescreva métodos para garantir compatibilidade, se necessário
27}