'boolean', 'is_active' => 'boolean', ]; public function scopeActive($query) { return $query->where('is_active', true)->orderBy('sort_order'); } }