Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| BusinessUser | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| sendWelcomeNotification | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| sendPasswordResetNotification | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Models\Auth; |
| 4 | |
| 5 | use App\Http\Models\Auth\BaseUser as Authenticatable; |
| 6 | use App\Notifications\Business\ResetPassword; |
| 7 | use App\Notifications\Business\Welcome; |
| 8 | use Illuminate\Notifications\Notifiable; |
| 9 | use Laravel\Passport\HasApiTokens; |
| 10 | |
| 11 | class BusinessUser extends Authenticatable |
| 12 | { |
| 13 | use HasApiTokens, Notifiable; |
| 14 | |
| 15 | protected $table = 'business_users'; |
| 16 | |
| 17 | protected $fillable = [ |
| 18 | 'name', |
| 19 | 'email', |
| 20 | 'password', |
| 21 | ]; |
| 22 | |
| 23 | protected $hidden = [ |
| 24 | 'password', |
| 25 | 'remember_token', |
| 26 | ]; |
| 27 | |
| 28 | public function sendWelcomeNotification() |
| 29 | { |
| 30 | $this->notify(new Welcome); |
| 31 | } |
| 32 | |
| 33 | public function sendPasswordResetNotification($token) |
| 34 | { |
| 35 | $this->notify(new ResetPassword($token)); |
| 36 | } |
| 37 | } |