spatie/laravel-view-models
Move complex view-prep logic out of controllers into dedicated Laravel view model classes. Extend Spatie\ViewModels\ViewModel to transform data for views, expose computed properties, and keep templates clean and focused.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-visit | 0.94 | Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. | 159 | 160 | 9 | 729 | 0 | 11.2 | 10.9 | MIT | 7 months ago | |
| spatie/laravel-model-flags | 0.94 | A Laravel trait that adds flags to Eloquent models without migrations, plus scopes to query flagged models. Useful for tracking process state and building idempotent, restartable code like Artisan commands. | 454 | 456 | 22 | 64K | 0 | 15.8 | 32.1 | MIT | 6 months ago | |
| spatie/laravel-model-cleanup | 0.93 | Deprecated: use Laravel’s built-in Prunable. Spatie’s laravel-model-cleanup deletes unneeded Eloquent records via a cleanUp() configuration per model, and an artisan command to prune records older than a given age or matching custom rules. | 394 | 399 | 43 | 272 | 0 | 5.5 | 2.2 | MIT | 5 years ago | |
| spatie/laravel-model-status | 0.93 | Add status history to any Eloquent model with Spatie’s HasStatuses trait. Set statuses (strings or enums), store reasons/extra info, and retrieve current or previous statuses via convenient helpers like status() and latestStatus(). | 1,056 | 1,062 | 83 | 114K | 0 | 23.0 | 29.6 | MIT | 8 months ago | |
| spatie/laravel-model-states | 0.93 | Add state behaviour to Eloquent models by combining the state pattern and state machines. Define each state as a class, cast it on your model, handle database serialization automatically, and transition between states easily. | 1,307 | 1,309 | 107 | 659K | 0 | 40.2 | 43.9 | MIT | 2 days ago | |
| spatie/laravel-deleted-models | 0.93 | Automatically copy deleted Eloquent model attributes into a deleted_models table to create a recycle bin for records. Restore deleted models by ID when needed. An alternative to soft deletes for preserving deletion history without keeping rows in place. | 411 | 413 | 26 | 21K | 0 | 14.0 | 25.0 | MIT | 8 months ago | |
| spatie/laravel-view-components | 0.90 | Abandoned package. Provides a “view components” pattern for Laravel: classes implementing Htmlable that encapsulate view-related logic and render HTML (often via Blade). Use @render to pass data, and wrap third‑party HTML builders like menus. | 236 | 238 | 22 | 166 | 0 | 2.4 | 2.3 | MIT | 6 years ago | |
| spatie/laravel-options | 0.89 | Generate unified select option lists in Laravel from enums, Eloquent models, states, and arrays. Spatie laravel-options converts sources to a consistent label/value structure, supports customization via config, and makes building dropdowns and filters faster and cleaner. | 252 | 255 | 9 | 15K | 0 | 13.5 | 26.6 | MIT | 6 months ago | |
| spatie/laravel-responsecache | 0.89 | Laravel package that caches entire responses to speed up your app. By default it stores successful GET responses returning HTML or JSON for a week, serving cached content without hitting the application. Supports flexible stale-while-revalidate caching. | 2,826 | 2,847 | 248 | 465K | 0 | 51.5 | 35.8 | MIT | 2 weeks ago | |
| spatie/laravel-translatable | 0.89 | A Laravel trait that makes Eloquent model attributes translatable, storing translations as JSON with no extra table needed. Set and retrieve per-locale values, with fallbacks for missing translations. | 2,459 | 2,488 | 296 | 2M | 0 | 50.1 | 47.5 | MIT | 2 weeks ago | |
| spatie/laravel-html | 0.89 | Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use. | 829 | 839 | 102 | 569K | 0 | 22.4 | 41.2 | MIT | 8 months ago | |
| spatie/laravel-searchable | 0.89 | Structured, case-insensitive search across Eloquent models and other sources. Register models/attributes (or custom search aspects) and get grouped, typed results with titles and URLs—ideal for building unified search pages in Laravel apps. | 1,373 | 1,381 | 110 | 79K | 0 | 25.4 | 25.7 | MIT | 8 months ago | |
| spatie/laravel-data | 0.89 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| spatie/laravel-blade-x | 0.86 | Blade-X brings Blade-style HTML components to Laravel 6 and below, letting you use tags like instead of @include. Package is abandoned because Laravel 7+ has native Blade components; migrate when upgrading. | 518 | 530 | 35 | 1K | 0 | 6.0 | 5.1 | MIT | 6 years ago | |
| spatie/laravel-comments | 0.86 | Laravel Comments lets you associate comments with any Eloquent model, so you can add threaded discussion to posts, products, or other records with minimal setup. Configurable, tested, and maintained by Spatie. | 16 | 48 | 41 | 0 | 4 | 18.7 | 1.2 | MIT | 7 months ago | |
| lanciweb/laravel-make-view | 0.86 | Laravel package adding an artisan make:view command to generate Blade view files. Create single views using dot notation (auto-creates nested folders) or scaffold conventional CRUD resource views (index, show, create, edit) with --crud/-c. | 4 | 5 | 0 | 6 | 0 | 1.5 | 4.7 | MIT | 3 years ago | |
| lanciweb/laravel-make-crud | 0.86 | Laravel package that scaffolds full CRUD for a model via php artisan make:crud. Generates model, resource controller, migration, seeder, routes, and Blade views by default; supports Admin prefixes, API mode, and pick-and-choose options (controller, factory, policy, requests, views, etc.). | 33 | 34 | 0 | 1 | 0 | 1.7 | 0.3 | MIT | 3 years ago | |
| laravellux/html | 0.86 | LaravelLux HTML is a Laravel package for building HTML through a fluent, composable API. It provides helpers for elements, attributes, forms, and Blade-friendly rendering, helping keep views clean, reusable, and easy to maintain. | 36 | — | 13 | — | 0 | 7.5 | — | MIT | 8 months ago |
|
| laravel-views/laravel-views | 0.86 | Laravel Views offers reusable view components for Laravel apps, including tables, grids, lists, and detail pages. Build searchable, sortable, paginated data displays and customizable cards with minimal boilerplate, clean PHP classes, and flexible Blade/Tailwind styling for faster admin panel develop... | 637 | 639 | 75 | 923 | 0 | 6.2 | 7.7 | MIT | 3 years ago | |
| spatie/menu | 0.86 | Fluent, extensible menu builder for Laravel. Compose navigation with a clean API, render as HTML, and customize output via presenters and macros. Supports active state handling, links, submenus, and easy integration with Blade and your app’s routing. | 754 | 764 | 100 | 59K | 0 | 15.8 | 26.2 | MIT | 1 year ago |
How can I help you explore Laravel packages today?