Updates to Product Model, product updates, enable pricing update, improved formating of product services
This commit is contained in:
@@ -4,8 +4,19 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Leenooks\Traits\ScopeActive;
|
||||
|
||||
class Group extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, ScopeActive;
|
||||
|
||||
/* SCOPES */
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function scopePricing()
|
||||
{
|
||||
return $this->where('pricing',TRUE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user