PHPnews.io

Overview for 'barryvdh'

CSRF Protection in Laravel explained

Written by Barry vd. Heuvel / Original link on Sep. 19, 2015

In this blog we take a closer look into CSRF protection in Laravel. We compare the difference between the CSRF filter in Laravel 4 and the current VerifyCsrfToken middleware in Laravel 5.Why do we need CSRF protection?Laravel has CSRF-protection enabled by default. So even if you don’t know what CS…


Using StackPHP middleware in Laravel 5

Written by Barry vd. Heuvel / Original link on Sep. 19, 2015

Laravel 4 was compatible with StackPHP middleware, but Laravel 5 uses a new way to handle middleware. This blog explains the differences and shows a way to still use Stack middleware.TLDR;Want StackPHP middleware in Laravel 5.0? Try barryvdh/laravel-stack-middlewareMiddleware and Laravel 4In versio…