There is no license information available for the latest version (dev-master) of this package.

Protect your Laravel Views from the dark side!

dev-master 2017-04-05 21:20 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:08:00 UTC


** In Development **

Laravel View Defender


Defending Laravel Views from evil

The story so far...

Views are great, they make outputting HTML etc nice 'n' easy. However, some developers from the dark side have been passing magical objects to their views, causing chaos in the view galaxy.

Designers (and even developers showing signs of the dark side) have been known to use these objects for evil, creating hundreds of database queries through lazy-loading relationships, and sometimes even more sinister!

NEON brings you View Defender to the rescue. Simply adding the package to your Laravel application will defend your views against evil objects such as Eloquent Models and Doctrine Entities.

Use the Force

Require this package

composer require neondigital/laravel-view-defender

After adding the package, add the ServiceProvider (Force) to the providers array in config/app.php


To publish the config use:

php artisan vendor:publish --tag="config"


This package is licensed under the MIT license.