osb/app/Models/Group.php

23 lines
339 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Leenooks\Traits\ScopeActive;
class Group extends Model
{
use HasFactory, ScopeActive;
/* SCOPES */
/**
* @return void
*/
public function scopePricing()
{
return $this->where('pricing',TRUE);
}
}