23 lines
339 B
PHP
23 lines
339 B
PHP
<?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);
|
|
}
|
|
}
|