Laravel’s caching mechanism works fine when executed:
$users = User::remember(10)->get();
but when executed:
$users = User::with('posts','addresses')->remember(10)->get();
it does not cache the entire set of requests, in particular the connection request (downloadable download).
Is there a way to cache all requests that run in the above example? Thanks!
Jonas source share