rakshitbharat / extendeddatabase
Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
1.4
2022-03-12 05:50 UTC
Requires
README
Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
Installation
You can install the package via composer:
composer require rakshitbharat/extendeddatabase
Usage
echo User::select('*')->where('name','Rakshit')->toSqlWithBindings();
Output
select * from users
where name
= Rakshit
echo User::paginateToDatatable(); or echo User::select('*')->where('name','something')->paginateToDatatable();
Excepted output will be more advance pagination options. For more information to pass parameters to this object with Request object read below. https://datatables.net/manual/server-side
Security
If you discover any security related issues, please email rakshitbharatproject@gmail.com instead of using the issue tracker.