title: Laravel controller parameter's purpose?
body: <pre><code>namespace App\Http\Controllers;
  
  use App\User;
  use App\Http\Controllers\Controller;
  
  class UserController extends Controller
  {
      /**
       * Show the profile for the given user.
       *
       * @param  int  $id
       * @return Response
       */
      public function showProfile($id)
      {
          return view('user.profile', ['user' =&gt; User::findOrFail($id)]);
      }
  }
  </code></pre>
  
  <p>Why do we put parameters on laravel controllers when we can use "Input::get(id)"?
  Can anyone give a sample on a situation where I need to use parameters on controller?</p>