title: laravel REST api post method
body: <p>im making an api in laravel but when i send from a post request it display nothing it work only when i send the values in the url what im i doing wrong here is my code !</p>
  
  <pre><code>$user = new userInscription;
  
              $user-&gt;nom = Request::get('name');
              $user-&gt;pseudo = Request::get('pseudo');
              $user-&gt;userId = Request::get('userId');
              $user-&gt;hasFiat = Request::get('hasFiat');
              $user-&gt;optin = Request::get('optin');
              $user-&gt;mail = Request::get('mail');
  
              $pseudo = Input::get('pseudo');
              $userId = Input::get('userId');
              $hasFiat = Input::get('hasFiat');
  
      if($pseudo == '' || $hasFiat == '' )
          {
              return Response::json( array(
              'status'  =&gt; 'ko',
              'message'  =&gt; 'missing mandatory parameters')
              );
          }
  
      else if($userId == '')
          {
              if( $user-&gt;save() )
              {
                  $id = DB::table('user')
                  -&gt;where('pseudo','LIKE',$pseudo)
                  -&gt;pluck('userId');
  
                  return Response::json(array(
                      'status'  =&gt; 'ok',
                      'message'  =&gt; 'success',
                      'userId' =&gt; $id
                  ));
              }
              else
              {
                  return Response::json(array(
                      'message'  =&gt; 'error while saving this user !!',   
                  ));
              }
          }
  </code></pre>