Skip to content

Instantly share code, notes, and snippets.

@jeffandersen jeffandersen/router.php Secret
Created Dec 13, 2018

Embed
What would you like to do?
<?php
use App\Task;
// Show Tasks
Route::get('/', function () {
$tasks = 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.