{"id":18467901,"url":"https://github.com/maikealame/laravel-auto","last_synced_at":"2025-04-08T10:32:22.485Z","repository":{"id":57016135,"uuid":"90755082","full_name":"maikealame/laravel-auto","owner":"maikealame","description":"Laravel Auto - a helper package to make automated lists with filters, sorting and paging like no other","archived":false,"fork":false,"pushed_at":"2023-01-13T23:03:34.000Z","size":6672,"stargazers_count":42,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T10:51:09.851Z","etag":null,"topics":["laravel","mysql","pagination","php","postgresql","sort","table","where"],"latest_commit_sha":null,"homepage":"https://maikealame.github.io/laravel-auto/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maikealame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-09T14:28:28.000Z","updated_at":"2023-09-10T16:14:53.000Z","dependencies_parsed_at":"2023-02-09T17:31:40.454Z","dependency_job_id":null,"html_url":"https://github.com/maikealame/laravel-auto","commit_stats":null,"previous_names":[],"tags_count":67,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikealame%2Flaravel-auto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikealame%2Flaravel-auto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikealame%2Flaravel-auto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikealame%2Flaravel-auto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maikealame","download_url":"https://codeload.github.com/maikealame/laravel-auto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824075,"owners_count":21002200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","mysql","pagination","php","postgresql","sort","table","where"],"created_at":"2024-11-06T10:03:54.772Z","updated_at":"2025-04-08T10:32:17.466Z","avatar_url":"https://github.com/maikealame.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://maikealame.github.io/laravel-auto/\"\u003e\n        \u003cimg src=\"https://github.com/maikealame/laravel-auto/raw/master/docs/images/logo-tp.png\" height=\"128\" alt=\"logo\"\u003e\n        \u003ch1\u003eLaravel Auto\u003c/h1\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\nLaravel helper package to make automated lists with filters, sorting and paging like no other. \n\nWiki: [https://maikealame.github.io/laravel-auto/](https://maikealame.github.io/laravel-auto/)\n\n[![Latest Version](https://img.shields.io/github/release/maikealame/laravel-auto.svg?style=flat-square)](https://github.com/maikealame/laravel-auto/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/maikealame/laravel-auto.svg?style=flat-square)](https://packagist.org/packages/maikealame/laravel-auto)\n\n---\n\n**You are free to create your own layout and style, there's no layout html/css included !**\n\n**This package only grants a very automated query in Eloquent with Blade directives.**\n\nYou 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.\n\n---\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/1.png)\n\n---\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/2.png)\n\n---\n\n```\n$categories = Topic::from(\"topics as t\")\n            -\u003eselect(\"t.*\")\n            -\u003eleftJoin(\"portals as p\", \"p.id\",\"=\",\"t.portal_id\")\n            -\u003eautoWhere()-\u003eautoSort()-\u003eautoPaginate();\n```\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/3.png)\n\n---\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/4.png)\n\n---\n\n```\nif (Request::has(\"filter\")) {\n    if (isset(Request::get(\"filter\")['keyword'])) {\n        $keyword = Request::get(\"filter\")['keyword'];\n        Auto::setField(\"notifications.title\", $keyword);\n        Auto::setField(\"notifications.description\", $keyword);\n    }\n}\n$notifications = Notification::select(\"notifications.*\", \"notification_users.readed_at\")\n            -\u003egroupBy(\"notifications.id\")\n            -\u003eleftJoin(\"notifications_users\", \"notifications.id\", \"=\", \"notifications_users.notification_id\")\n            -\u003eleftJoin(\"notifications_roles\", \"notifications.id\", \"=\", \"notifications_roles.notification_id\")\n            -\u003eleftJoin(\"notifications_departments\", \"notifications.id\", \"=\", \"notifications_departments.notification_id\")\n            -\u003eautoWhere(['or' =\u003e [\"notifications.title\", \"notifications.description\"]])\n            -\u003eautoSort([\"notifications.updated_at\", \"desc\"])-\u003eautoPaginate();\n```\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/5.png)\n\n---\n\n```\n$enterprises = Enterprises::from(\"enterprises as e\"))\n            -\u003eselect(\"e.*\")\n            -\u003eleftJoin(\"enterprise_indicators_enterprises as iei\",\"eie.enterprise_id\",\"=\",\"e.id\")\n            -\u003egroupBy(\"e.id\")\n            -\u003eautoWhere()-\u003eautoSort()-\u003eautoPaginate();\n```\n\n![table image](https://raw.githubusercontent.com/maikealame/laravel-auto/master/docs/images/examples/6.png)\n\n---\n\nSee https://maikealame.github.io/laravel-auto/\n\n---\n\n- [Features](https://maikealame.github.io/laravel-auto#features)\n- [What it do](https://maikealame.github.io/laravel-auto#what-it-do)\n- [What is necessary](https://maikealame.github.io/laravel-auto#what-is-necessary)\n- [Wiki](https://maikealame.github.io/laravel-auto#wiki)\n- [Examples](https://maikealame.github.io/laravel-auto#example)\n- [How it works](https://maikealame.github.io/laravel-auto#how-works)\n1. [View](https://maikealame.github.io/laravel-auto#view)\n2. [Controller](https://maikealame.github.io/laravel-auto#controller)\n3. [Model](https://maikealame.github.io/laravel-auto#model)\n- [How to install](https://maikealame.github.io/laravel-auto#how-to-install)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaikealame%2Flaravel-auto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaikealame%2Flaravel-auto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaikealame%2Flaravel-auto/lists"}