3
0
Fork 0
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
ThemeParkPlus-Panel/app/ChangeEmail.php

28 lines
485 B
PHP
Raw Normal View History

2020-02-26 13:59:58 +00:00
<?php
namespace App;
use App\Notifications\SendMailChange;
use Illuminate\Database\Eloquent\Model;
class ChangeEmail extends Model
{
protected $table = 'change_user_email';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id', 'email', 'token'
];
public function sendMail() {
$user = User::findOrFail($this->user_id);
$user->notify(new SendMailChange($this));
}
}