added gholak

This commit is contained in:
2026-08-01 17:30:14 +03:30
parent 9642e603e7
commit eaff9dead2
12 changed files with 538 additions and 75 deletions
+15 -2
View File
@@ -9,14 +9,27 @@ use Rooyesh\Wallet\models\Wallet;
class Fund extends Model
{
use HasFactory,Selector,SoftDeletes;
protected $fillable =[
use HasFactory, Selector, SoftDeletes;
protected $fillable = [
'title',
'file_id',
'customer_id',
'product_id',
];
public function wallet()
{
return $this->hasMany(Wallet::class);
}
public function product()
{
return $this->belongsTo(Product::class, 'product_id');
}
public function customer()
{
return $this->belongsTo(Customer::class, 'customer_id');
}
}