first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Modules\Product\Models;
use App\Traits\CreatedUpdatedBy;
use App\Traits\StatusTrait;
use Illuminate\Database\Eloquent\Model;
use Modules\Client\Models\Client;
class Product extends Model
{
use StatusTrait, CreatedUpdatedBy;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'name',
'description',
'usps',
'client_id',
'status',
'createdby',
'updatedby',
];
protected $appends = ['status_name'];
public function client()
{
return $this->belongsTo(Client::class, 'client_id');
}
}