maikealame/laravel-auto
| Install | |
|---|---|
composer require maikealame/laravel-auto |
|
| Latest Version: | 1.1.3 |
| PHP: | >=5.5.9 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Jan 13, 2023 |
| Links: | GitHub · Packagist |
Laravel helper package to make automated lists with filters, sorting and paging like no other.
Wiki: https://maikealame.github.io/laravel-auto/
You are free to create your own layout and style, there's no layout html/css included !
This package only grants a very automated query in Eloquent with Blade directives.
You can use it either without Blade directives, like Vue.js and React, but you need to implement manually the calls to backend and layout rendering.


$categories = Topic::from("topics as t")
->select("t.*")
->leftJoin("portals as p", "p.id","=","t.portal_id")
->autoWhere()->autoSort()->autoPaginate();


if (Request::has("filter")) {
if (isset(Request::get("filter")['keyword'])) {
$keyword = Request::get("filter")['keyword'];
Auto::setField("notifications.title", $keyword);
Auto::setField("notifications.description", $keyword);
}
}
$notifications = Notification::select("notifications.*", "notification_users.readed_at")
->groupBy("notifications.id")
->leftJoin("notifications_users", "notifications.id", "=", "notifications_users.notification_id")
->leftJoin("notifications_roles", "notifications.id", "=", "notifications_roles.notification_id")
->leftJoin("notifications_departments", "notifications.id", "=", "notifications_departments.notification_id")
->autoWhere(['or' => ["notifications.title", "notifications.description"]])
->autoSort(["notifications.updated_at", "desc"])->autoPaginate();

$enterprises = Enterprises::from("enterprises as e"))
->select("e.*")
->leftJoin("enterprise_indicators_enterprises as iei","eie.enterprise_id","=","e.id")
->groupBy("e.id")
->autoWhere()->autoSort()->autoPaginate();

See https://maikealame.github.io/laravel-auto/
Related Packages
Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL data...
A read-only database browser for Laravel: browse your tables and their rows from...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.1.3 | >=5.5.9 | MIT | |
| 1.1.2 | >=5.5.9 | MIT | |
| 1.1.1 | >=5.5.9 | MIT | |
| 1.1.0 | >=5.5.9 | MIT | |
| 1.0.11 | >=5.5.9 | MIT | |
| 1.0.10 | >=5.5.9 | MIT | |
| 1.0.9 | >=5.5.9 | MIT | |
| 1.0.8 | >=5.5.9 | MIT | |
| 1.0.7 | >=5.5.9 | MIT | |
| 1.0.6 | >=5.5.9 | MIT | |
| 1.0.5.5 | >=5.5.9 | MIT | |
| 1.0.5.4 | >=5.5.9 | MIT | |
| 1.0.5.3 | >=5.5.9 | MIT | |
| 1.0.5.2 | >=5.5.9 | MIT | |
| 1.0.5.1 | >=5.5.9 | MIT | |
| 1.0.5 | >=5.5.9 | MIT | |
| 1.0.4 | >=5.5.9 | MIT | |
| 1.0.3 | >=5.5.9 | MIT | |
| 1.0.2 | >=5.5.9 | MIT | |
| 1.0.1 | >=5.5.9 | MIT | |
| 1.0 | >=5.5.9 | MIT | |
| 0.4.6.2 | >=5.5.9 | MIT | |
| 0.4.6.1 | >=5.5.9 | MIT | |
| 0.4.6 | >=5.5.9 | MIT | |
| 0.4.5.9 | >=5.5.9 | MIT | |
| 0.4.5.8 | >=5.5.9 | MIT | |
| 0.4.5.7 | >=5.5.9 | MIT | |
| 0.4.5.6 | >=5.5.9 | MIT | |
| 0.4.5.5 | >=5.5.9 | MIT | |
| 0.4.5.4 | >=5.5.9 | MIT |
Showing the latest 30 of 66. See every release on Packagist