Files
izyim/app/Models/UserInvitation.php
T
2019-02-14 11:43:19 +08:00

28 lines
499 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Notifications\Notifiable;
class UserInvitation extends AbstractModel
{
use Notifiable;
public $incrementing = true;
protected $table = 'user_invitation';
protected $fillable = [
'email',
'hash',
'role_id',
'sender_id',
'is_complete',
];
public function sender() {
return $this->belongsTo(user::class, 'sender_id');
}}