Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel View Models Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.6.2

Add Laravel 13 support

1.5.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-view-models/compare/1.5.1...1.5.2

1.5.0
  • Allow Laravel 9
1.4.0
  • Allow $data to be passed to view (#39)
1.3.2
  • add support for PHP 8
1.3.1
  • Add support for Laravel 8
1.3.0
  • Add support for Laravel 7
1.2.0
1.1.1
1.1.0
  • add a make:view-model command
1.0.2
  • Properly ignore magic methods
1.0.1
  • Fix JSON response being wrongly encoded
1.0.0

First major release

0.0.1
  • experimental release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai