Initial commit
This commit is contained in:
commit
b105bd7db7
171 changed files with 28322 additions and 0 deletions
27
app/ChangeEmail.php
Normal file
27
app/ChangeEmail.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?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));
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue