| Package Data | |
|---|---|
| Maintainer Username: | maikealame | 
| Maintainer Contact: | maike.alame@gmail.com (Maike Alame) | 
| Package Create Date: | 2017-05-09 | 
| Package Last Update: | 2023-01-13 | 
| Home Page: | https://maikealame.github.io/laravel-auto/ | 
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-11-03 15:13:35 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 4,634 | 
| Monthly Downloads: | 36 | 
| Daily Downloads: | 2 | 
| Total Stars: | 42 | 
| Total Watchers: | 4 | 
| Total Forks: | 2 | 
| Total Open Issues: | 2 | 
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.


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


$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();

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);
            }
}
$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/