'boolean', 'sort_order' => 'integer', 'options' => 'array', ]; public function category() { return $this->belongsTo(Category::class); } // 편의 스코프 public function scopeRequired($q) { return $q->where('is_required', 1); } }