whoami7 - Manager
:
/
home
/
qbizpnmr
/
test.qbiztax.com
/
app
/
Models
/
Auth
/
Upload File:
files >> //home/qbizpnmr/test.qbiztax.com/app/Models/Auth/UserInvitation.php
<?php namespace App\Models\Auth; use App\Abstracts\Model; class UserInvitation extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'user_invitations'; protected $tenantable = false; /** * The attributes that are mass assignable. * * @var string[] */ protected $fillable = ['user_id', 'token', 'created_from', 'created_by']; public function user() { return $this->belongsTo(user_model_class()); } /** * Scope a query to only include given token value. * * @param \Illuminate\Database\Eloquent\Builder $query * @return void */ public function scopeToken($query, $token) { $query->where('token', $token); } }
Copyright ©2021 || Defacer Indonesia