neondigital / view-defender by neondigital

Protect your Laravel Views from the dark side!
18
1
2
Package Data
Maintainer Username: neondigital
Maintainer Contact: glenn@neondigital.co.uk (Glenn)
Package Create Date: 2016-09-16
Package Last Update: 2017-04-05
Language: PHP
License: Unknown
Last Refreshed: 2024-04-25 15:02:50
Package Statistics
Total Downloads: 18
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

** 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

Neondigital\LaravelViewDefender\ViewDefenderServiceProvider::class,

To publish the config use:

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

License

This package is licensed under the MIT license.