rakshitbharat / extendeddatabase
通过附加更多方法来扩展Laravel的ORM Eloquent的功能。
1.4
2022-03-12 05:50 UTC
Requires
README
通过附加更多方法来扩展Laravel的ORM Eloquent的功能。
安装
您可以通过composer安装此包
composer require rakshitbharat/extendeddatabase
用法
echo User::select('*')->where('name','Rakshit')->toSqlWithBindings();
输出:select * from users
where name
= Rakshit
echo User::paginateToDatatable(); or echo User::select('*')->where('name','something')->paginateToDatatable();
预期的输出将包含更高级的分页选项。有关如何使用请求对象传递参数到此对象的信息,请参阅以下内容。https://datatables.net.cn/manual/server-side
安全
如果您发现任何与安全相关的问题,请通过rakshitbharatproject@gmail.com发送电子邮件,而不是使用问题跟踪器。