Debug view data
Print view data in the browser. For debugging purpose., (*1)
When working on large projects, it sometimes is hard to know what data is exactly passed to the view. With this package you can output all data as JSON., (*2)
Require this package with composer. It is recommended to only require the package for development., (*3)
composer require frewillems/laravel-view-json --dev
Laravel 5.5 uses Package auto-discovery so doesn't require you to manually add the ServiceProvider., (*4)
This package will only be enabled when APP_DEBUG
is true
., (*5)
If you don't/can't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
., (*6)
FreWillems\ViewJson\ViewJsonServiceProvider::class
Add ?view=json
to any url and you will get all the view data in JSON format., (*7)