0

I am using the laravel 4 framework. I recently updated composer.json to include PHPIDS. I read the documentation and understand how to implement it, but is there a quick way to filter ALL of the pages on my site, instead of just one? In short, is there a way that I could implement it where it would be included in every page of the site?

Mehraban
  • 3,164
  • 4
  • 37
  • 60
735Tesla
  • 3,162
  • 4
  • 34
  • 57
  • 1
    Yes. [Consider filters](http://culttt.com/2013/09/16/use-laravel-4-filters/) or generic before routing hooks. – bishop May 08 '14 at 00:48
  • Now I'm having some difficulties with the filter. Could you post some example code? – 735Tesla May 08 '14 at 11:17
  • 1
    I don't have examples, which is why I only commented: my answer is theoretical. Update your post with your code so far, and we can work on it together. – bishop May 08 '14 at 14:20

0 Answers0