Hi!
I am making a newsfeed for my application using the strategy pattern because the list contains different item types, f.ex. user profile information, images, etc. The feed is populated by objects that implement the same interface, and return a ViewPresenter class to present themselves.
It is all working well, but I am simplifying it using Blade templating now. As soon I apply a @extends('layouts.master') section to the views and move all my formatting into the master, ALL views are showing exactly the same object. For example the same user image, even though the contents of the views are different.
Before:
After:
Since this happens when using the blade extension, can it have something to do with this? I thought maybe some kind of caching?
Regards, Skovmand.
Seems like this is my problem: https://github.com/laravel/framework/issues/1058
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community