api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models\Traits\Request\Attributes;
use App\Traits\ActionButtons;
trait RequestAttributes
{
use ActionButtons;
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Models\Traits\UserRelation\Relationships;
use App\Models\Relationship;
use App\Models\User;
trait UserRelationRelationships
{
/**
* @return mixed
*/
public function receivedUsers()
{
return $this->belongsTo(User::class, 'from_id');
}
/**
* @return mixed
*/
public function relationships()
{
return $this->belongsTo(Relationship::class, 'relation_id');
}
/**
* @return mixed
*/
public function sentUsers()
{
return $this->belongsTo(User::class, 'to_id');
}
}