PHPNews

Hello Jose,

Hello Jose, You can use Blade and Twig together in your application, but you can’t mix the two in your templates. So you could probably create your base template in both Twig and Blade and then switch out your templates one by one. Or only change your front-end to Twig and keep Blade in the back-end etc. Good luck!

Continue reading »

Written by Barry vd. Heuvel - - Aggregated on Monday December 21, 2015


Comparing Blade and Twig templates in Laravel

In my company, we use Twig instead of Blade for our Laravel projects. I know there are a lot of developers that also prefer Twig over Blade. So the question ‘Why choose Twig over Blade?’ often pops up. The reason is usually just a matter of preference, but in this post we’re going to compare the Blade and Twig …

Continue reading »

Written by Barry vd. Heuvel - - Aggregated on Saturday September 19, 2015


OAuth in Javascript Apps with Angular and Lumen, using Satellizer and Laravel …

In the last few weeks, Socialite was a popular topic to blog/tweet about. Coincidentally, I also needed Socialite for a project. But in my case, I wanted to use it in an Angular app, distributed using Cordova (Phonegap) as hybrid app on Android/iOS. There were some examples, but I couldn’t find much about it at the …

Continue reading »

Written by Barry vd. Heuvel - - Aggregated on Saturday September 19, 2015


CSRF Protection in Laravel explained

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 CSRF is, or why …

Continue reading »

Written by Barry vd. Heuvel - - Aggregated on Saturday September 19, 2015


Using StackPHP middleware in Laravel 5

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-middleware Middleware and Laravel 4 In version …

Continue reading »

Written by Barry vd. Heuvel - - Aggregated on Saturday September 19, 2015