public static function getPageByCategory($catid) { return Page::findAll(['category_id' => $catid]); }