added gholak
This commit is contained in:
+15
-2
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user