[Laravel] blade template

// app/views/index.blade.php
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>test</title>
    
  </head>
  <body>
    <h1>all users</h1>
    
    
    @foreach($users as $user)
      <li>{{ link_to("/users/{$user->username}", $user->username) }}</li>
    @endforeach
    <br>
    {{ dd($users->toArray()) }}
  </body>
</html>
// app/views/users/show.blade.php
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>test</title>
    
  </head>
  <body>
    <h1>hello, {{ $user->username }}</h1>
  </body>
</html>
// app/routes.php
Route::get('users', function()
{
  $users = User::all();
  
  //return View::make("users.index")->with("users", $users);
  //return View::make("users.index")->withUsers($users);
  return View::make("users.index", ["users" => $users]);
});

Route::get('users/{username}', function($username)
{
  $user = User::whereUsername($username)->first();  // select * from users where username = USERNAME LIMIT 1
  
  return View::make("users.show", ["user" => $user]);
});