where("type", "admin"); } public function scopeOfGeneral($query) { return $query->where("type", "general"); } public function scopeOfProduct($query) { return $query->where("type", "product"); } public function scopeOfCustom($query) { return $query->where("custom", 1); } public function scopeOfName($query, $name) { return $query->where("name", $name); } }