Files
Global-Jain/app/Models/UserRelation.php

42 lines
843 B
PHP
Raw Normal View History

2025-11-05 10:37:10 +05:30
<?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'
];
}