Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
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.