Using morphTo() on services, added Ezypay payment Import
This commit is contained in:
@@ -21,9 +21,14 @@ class Product extends Model
|
||||
return $this->hasMany(Service::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the service category (from the product)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCategoryAttribute()
|
||||
{
|
||||
return $this->prod_plugin_file;
|
||||
return $this->prod_plugin_file ?: 'Other';
|
||||
}
|
||||
|
||||
public function getContractTermAttribute()
|
||||
|
Reference in New Issue
Block a user