{"id":13404842,"url":"https://github.com/Gustavinho/laravel-views","last_synced_at":"2025-03-14T09:31:53.791Z","repository":{"id":37240347,"uuid":"246942216","full_name":"Gustavinho/laravel-views","owner":"Gustavinho","description":"Laravel package to create beautiful common views like data tables using the TALL stack.","archived":false,"fork":false,"pushed_at":"2024-01-01T11:20:56.000Z","size":13075,"stargazers_count":638,"open_issues_count":29,"forks_count":77,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-09T08:42:56.350Z","etag":null,"topics":["alpine","laravel","laravel-livewire","laravel-package","php","tailwind-css","tall-stack"],"latest_commit_sha":null,"homepage":"https://laravelviews.com","language":"PHP","has_issues":false,"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/Gustavinho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-12T22:32:36.000Z","updated_at":"2025-03-05T02:59:37.000Z","dependencies_parsed_at":"2024-04-10T04:38:19.466Z","dependency_job_id":"087cac6d-6521-47cd-93d6-fa808ba072c1","html_url":"https://github.com/Gustavinho/laravel-views","commit_stats":{"total_commits":374,"total_committers":14,"mean_commits":"26.714285714285715","dds":0.1871657754010695,"last_synced_commit":"05cca77ccfe289797a859c2de68eacd565fdcc2e"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavinho%2Flaravel-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavinho%2Flaravel-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavinho%2Flaravel-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavinho%2Flaravel-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gustavinho","download_url":"https://codeload.github.com/Gustavinho/laravel-views/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243554065,"owners_count":20309860,"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":["alpine","laravel","laravel-livewire","laravel-package","php","tailwind-css","tall-stack"],"created_at":"2024-07-30T19:01:52.157Z","updated_at":"2025-03-14T09:31:53.263Z","avatar_url":"https://github.com/Gustavinho.png","language":"PHP","funding_links":[],"categories":["PHP","Datatables","Packages / Plugins","Libraries"],"sub_categories":[],"readme":"![Laravel views](https://laravelviews.com/img/docs/table.png)\n\n# Laravel views\n\nLaravel package to create beautiful common views like data tables using the [TALL stack](https://tallstack.dev/).\n\n# Documentation\nRead the [full documentation](https://laravelviews.com)\n\n# Live examples\nSee some [live examples](https://laravelviews.com/examples/table-view) for the different views.\n\n## Contributing\n\nCheck the [contribution guide](CONTRIBUTING.md)\n\n## Roadmap\n\nLaravel Views is still under heavy development so I will be adding more awesome features and views.\n\nHere's the plan for what's coming:\n\n- **New form view**\n- **New layout view**\n- Add a download action\n- Add translations\n- Add links as a UI helpers\n\n## Upgrade guide\n### From 2.4.0 to 2.4.1\n**Publish blade componentes**\n\nSome of the internal components have changed, if you have published these components before to customize them, you will not have them up to date, unfourtunately you need to publish them again with `php artisan vendor:publish --tag=views --provider='LaravelViews\\LaravelViewsServiceProvider'` and customize them as you need.\n\n### From 2.2 to 2.3\n**Cached views**\n\n\nThe blade directives have changed, you need to clear the cached views with `php artisan view:clear`\n\n**Public assets**\n\nThe main assets (JS and CSS files) have changed, you need to publish the public assets again with `php artisan vendor:publish --tag=public --provider='LaravelViews\\LaravelViewsServiceProvider' --force`\n\n**Publish blade componentes**\n\nSome of the internal components have changed, if you have published these components before to customize them, you will not have them up to date, unfourtunately you need to publish them again with `php artisan vendor:publish --tag=views --provider='LaravelViews\\LaravelViewsServiceProvider'` and customize them as you need.\n\n**Method `renderIf()` in actions**\n\nUpdate the renderIf() function in your action classes adding a new `$view` parameter as follows:\n  ```php\n  \u003c?php\n\n  namespace App\\Actions;\n\n  use LaravelViews\\Actions\\Action;\n  use LaravelViews\\Views\\View;          // new line\n\n  class YourAction extends Action\n  {\n      public function renderIf($item, View $view)       // add the view parameter\n      {\n          // your content\n      }\n  }\n  ```\n**Publish config file (Optional)**\n\nSome new variants have been added to the config file, if you have published the config file before, you could publish it again so you can customize the new variants, this doesn't affect anything at all since the new variants will be taken from the default config file.\n\n**Remove `repository` method from your views (Optional)**\n\nIf your `repository()` methods are returning a query object without any other query applied like `User::query()`, you can define a `protected $model = User::class;` instead, this is the default behavior now, the `repository()` method is still working so you don't need to change anything if you don't want to.\n\n```php\n/* Before */\npublic function repository(): Builder\n{\n    // You are using a single query\n    return User::query();\n}\n\n/** After */\nprotected $model = User::class;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGustavinho%2Flaravel-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGustavinho%2Flaravel-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGustavinho%2Flaravel-views/lists"}