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,18 @@
<?php
namespace App\Models\Traits\Message\Attributes;
use App\Traits\ActionButtons;
trait MessageAttributes
{
use ActionButtons;
/**
* @return string
*/
public function getStatusActionAttribute(): string
{
return $this->statusLabel($this->status);
}
}

View File

@@ -0,0 +1,8 @@
<?php
namespace App\Models\Traits\Message\Methods;
trait MessageMethods
{
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models\Traits\Message\Relationships;
/**
* Trait MessageRelationships
* @package Domains\User\Models\Traits\Relationships
*/
trait MessageRelationships
{
/**
* @return mixed
*/
public function user()
{
return $this->belongsTo(\App\Models\User::class);
}
/**
* @return mixed
*/
public function messageThreads()
{
return $this->belongsTo(\App\Models\MessagesThreads::class,'message_thread_id','id');
}
}

View File

@@ -0,0 +1,8 @@
<?php
namespace App\Models\Traits\Message\Scopes;
trait MessageScope
{
}