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上