I know you can cache a query by appending ->remember($minutes)
.
However, this doesn't work when using loading on an existing Eloquent result. This is because load doesn't return a querybuilder but directly executes it.
Say you want to load the friends of a user:
$user=Auth::user();
$user->load('friends'); // How to cache these results ?
How can I cache these ?