Does Lumen have the Eloquent remember() method?
Like in the main framework of Laravel, there's a method for Eloquent called remember() that caches queries.
Does Lumen have this?
The remember method was removed on Laravel5 on eloquent so It won't be in Lumen.
@oes Is there any way to re-add it manually?
Nope. You would have to extend eloquent builder.
@TechKat I don't have tested yet, but Lumen inherits the Eloquent from Laravel. I think it has.
@pedroroccon Lumen Eloquent is from Laravel5. As I stated above it was removed from version 5. The remember method was in 4.2 and below.
@oes Ohh! I did not know that the remember() method was removed from Laravel 5! Sorry.
Or just use Cache::remember() on an Eloquent callback.
Please or to participate in this conversation.