在Laravel模型中使用Paginate时出错

时间:2015-02-13 05:14:14

标签: php laravel-4 pagination

namespace ModAdmin;
use \DB;

class Card {
    private static $Table = 'm_card';

    //work fine when call like this
    public static function getAll()
    {
        return
        DB::table(static::$Table)->get();
    }

    //and get error when call like this
    public static function getAll()
    {
        return 
        DB::table(static::$Table)->paginate(10);
    }

}

有人能告诉我这个分页功能有什么问题吗??? 我的模型在Model / ModAdmin上

0 个答案:

没有答案