title: Pass $id from blade to controller method show Laravel 4
body: <p>I am a laravel beginner and trying to pass id to controller method show. It does not showing anything after page reloads. I tried some google stuffs. It didnt bring any help. My related code is given below :</p>
  
  <p>admin.blade.php</p>
  
  <pre><code>&lt;div class="showOne"&gt;
  &lt;?php if(isset($users)){
      var_dump($users);
  }
  ?&gt;
  </code></pre>
  
  <p>  </p>
  
  <pre><code>@foreach($inputs as $key =&gt; $user)
    &lt;tr&gt;
     &lt;td&gt;{{ ++$key }}&lt;/td&gt;
     &lt;td&gt;{{ $user-&gt;name }}&lt;/td&gt;
     &lt;td&gt;{{ $user-&gt;email }}&lt;/td&gt;
     &lt;td&gt;{{ $user-&gt;address }}&lt;/td&gt;
     &lt;td&gt;{{ $user-&gt;phone }}&lt;/td&gt;
     &lt;td&gt;
      {{ Form::open(['route' =&gt; ['admin.show', $user-&gt;id], 'method' =&gt; 'get']) }}
      {{ Form::button('Details') }}
      {{ Form::close() }}
     &lt;/td&gt;
     &lt;td&gt;
      {{ Form::open(['route' =&gt; ['admin.edit', $user-&gt;id], 'method' =&gt; 'get']) }}
      {{ Form::button('Edit') }}
      {{ Form::close() }}
     &lt;/td&gt;
     &lt;td&gt;
      {{ Form::open(['route' =&gt; ['admin.delete', $user-&gt;id], 'method' =&gt; 'get']) }}
      {{ Form::button('Delete') }}
      {{ Form::close() }}
     &lt;/td&gt;
   &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>class AdminController extends \BaseController {
  
      /**
       * Display a listing of the resource.
       *
       * @return Response
       */
      public function index()
      {
          // get all the inputs
          $inputs = Userdatas::all();
  
          // load the view and pass the inputs
          return View::make('pages.admin')
              -&gt;with('inputs', $inputs);
      }
  
      /**
       * Display the specified resource.
       *
       * @param  int  $id
       * @return Response
       */
      public function show($id)
      {
          $user = Userdatas::find($id);
          var_dump($user);
          die();
          return View::make('pages.admin')
              -&gt;with('users', $user);
      }
  
  }
  </code></pre>
  
  <p>routes:</p>
  
  <pre><code>Route::get('admin', [
    'uses' =&gt; 'AdminController@index'
  ]);
  
  Route::get('admin/{id}', [
    'uses' =&gt; 'AdminController@show',
    'as' =&gt; 'admin.show'
  ]);
  </code></pre>