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
2020-02-26 14:59:58 +01:00

27 lines
485 B
PHP

<?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));
}
}