Updates to Product Model, product updates, enable pricing update, improved formating of product services

This commit is contained in:
2023-05-04 22:17:42 +10:00
parent 95bb55aad8
commit 0f91ce4940
21 changed files with 491 additions and 138 deletions

View File

@@ -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);
}
}