neondigital/laravel-view-defender

Protect your Laravel Views from the dark side!
19 1
Install
composer require neondigital/laravel-view-defender
Last Updated:Apr 5, 2017
Links: GitHub  ·  Packagist
Maintainer: neondigital

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

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

612,604,198 9,704
laravel/framework

The Laravel Framework.

551,557,428 34,802
laravel/tinker

Powerful REPL for the Laravel framework.

462,518,693 7,436