3
0
Fork 0

Initial commit

This commit is contained in:
BuildTools 2020-02-26 14:59:58 +01:00
commit b105bd7db7
171 changed files with 28322 additions and 0 deletions

27
app/ChangeEmail.php Normal file
View 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));
}
}