public static function children($id) { $child = Categories::whereParent($id)->get(); if (count($child)) { return $child; } return false; }