Skip to content

Instantly share code, notes, and snippets.

@jeffandersen jeffandersen/show tasks Secret
Created Dec 13, 2018

Embed
What would you like to do?
// Show Tasks
Route::get('/', function () {
$tasks = Cache::rememberForever('all_tasks', function () {
return Task::orderBy('created_at', 'asc')->get();
});
return view('tasks', [
'tasks' => $tasks
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.