I'm trying to cache my query, but I do not know how to recover the data later. Another question: when the number of rows in the database increases, does it automatically redo the query cache, or every time I enter the page does it cache the query again?
$value = Cache::remember('users', 50, function()
{
return DB::table('users')->with('ucomments')->get();
});