Filters


Filters are a way to modify certain content before it reaches the view.

The following filters are available. Many more coming soon...

We use the Eventy package to provide and easy way to implement filters. It comes as a requirement in Neutrino. All you need to do is include it in your service provider:

use TorMorten\Eventy\Facades\Events as Eventy;

Now you can start using filters:

/*
*    Page and Entry content filter
*/
Eventy::addFilter('content', function($content) {
    $content = 'Add content before the content. '. $what;
    return $content;
}, 20, 1);