42 lines
843 B
PHP
42 lines
843 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use App\Models\Traits\UserRelation\Relationships\UserRelationRelationships;
|
||
|
|
|
||
|
|
class UserRelation extends Model
|
||
|
|
{
|
||
|
|
use UserRelationRelationships;
|
||
|
|
|
||
|
|
protected $table = 'user_relations';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The attributes that are mass assignable.
|
||
|
|
*
|
||
|
|
* @var array
|
||
|
|
*/
|
||
|
|
protected $fillable = [
|
||
|
|
'from_id',
|
||
|
|
'to_id',
|
||
|
|
'relation_id',
|
||
|
|
'relation',
|
||
|
|
'status',
|
||
|
|
'relation_privacy'
|
||
|
|
];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The attributes that should be cast to native types.
|
||
|
|
*
|
||
|
|
* @var array
|
||
|
|
*/
|
||
|
|
protected $casts = [
|
||
|
|
'id' => 'integer',
|
||
|
|
'from_id' => 'integer',
|
||
|
|
'to_id' => 'integer',
|
||
|
|
'relation_id' => 'integer',
|
||
|
|
'status' => 'integer',
|
||
|
|
'relation_privacy' => 'integer'
|
||
|
|
];
|
||
|
|
}
|