TechKat's avatar

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?

0 likes
8 replies
oes's avatar

The remember method was removed on Laravel5 on eloquent so It won't be in Lumen.

oes's avatar

Nope. You would have to extend eloquent builder.

oes's avatar

@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.

pedroroccon's avatar

@oes Ohh! I did not know that the remember() method was removed from Laravel 5! Sorry.

Francismori7's avatar

Or just use Cache::remember() on an Eloquent callback.

1 like

Please or to participate in this conversation.