3

I've been looking at the use of ESI tags in Symfony through Varnish and I'm wondering if the same thing can be done in Laravel, and if so, how?

A Senior Developer at work wants us to switch from Laravel to Symfony and is currently using ESI tags as a reason to make the switch, leading me to believe it's exclusive to Symfony, but that doesn't make sense from what I've read of it.

Darragh Enright
  • 13,676
  • 7
  • 41
  • 48
João Serra
  • 243
  • 4
  • 14
  • 1
    It can be done in raw php, so there must be a way to do it in Laravel. But honestly, Symfony is just a better framework, I highly support his decision regardless. – Joe Yahchouchi Nov 16 '16 at 14:34

2 Answers2

0

I know it's an old question but as it comes first when looking for Laravel ESI on Google, it should be known that you can handle ESI in Laravel with Laravel HttpCache by Barry vd. Heuvel.

Alessandro Benoit
  • 903
  • 10
  • 19
-2

Laravel uses Blade for templating.

You can include a file like @include('shared.errors')

Please refer to Laravel's documentation on usage of Blade here

Lucky Soni
  • 6,811
  • 3
  • 38
  • 57