public static function all($perPage = -1, $orderby = 'menu_order', $order = 'ASC')
    {
        $order = strtoupper($order);

        $args = [
            'posts_per_page' => $perPage,
            'orderby'       => $orderby,
            'order'         => $order,
        ];

        return static::query($args);
    }
public static function all($perPage = -1, $orderby = 'menu_order', $order = 'ASC')
    {
        $order = strtoupper($order);

        $args = [
            'posts_per_page' => $perPage,
            'orderby'       => $orderby,
            'order'         => $order,
        ];

        return static::query($args);
    }
public static function all ( $ perPage = - 1 , $ orderby = 'menu_order' , $ order = 'ASC' ) { $ order = strtoupper ( $ order ) ; $ args = [ 'posts_per_page' => $ perPage , 'orderby' => $ orderby , 'order' => $ order , ] ; return static :: query ( $ args ) ; }
Get all posts of this type

@param  integer $perPage The number of items to return (defaults to all)
@return Illuminate\Support\Collection
Get all posts of this type