https://github.com/rakshitbharat/extendeddatabase
Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
https://github.com/rakshitbharat/extendeddatabase
database easy laravel orm
Last synced: 8 months ago
JSON representation
Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
- Host: GitHub
- URL: https://github.com/rakshitbharat/extendeddatabase
- Owner: rakshitbharat
- License: mit
- Created: 2020-03-20T11:38:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T05:52:08.000Z (over 4 years ago)
- Last Synced: 2025-01-25T17:16:08.582Z (over 1 year ago)
- Topics: database, easy, laravel, orm
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Extend Database will give more power to already best.
[](https://packagist.org/packages/rakshitbharat/extendeddatabase)
[](https://travis-ci.org/rakshitbharat/extendeddatabase)
[](https://scrutinizer-ci.com/g/rakshitbharat/extendeddatabase)
[](https://packagist.org/packages/rakshitbharat/extendeddatabase)
Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
## Installation
You can install the package via composer:
```bash
composer require rakshitbharat/extendeddatabase
```
## Usage
``` php
echo User::select('*')->where('name','Rakshit')->toSqlWithBindings();
```
Output
select * from `users` where `name` = Rakshit
``` php
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.