title: Invoking Laravel 4 Restful curl in browser URL
body: <p>I'm finished with this Laravel 4 Restfull tutorial here - <a href="http://code.tutsplus.com/tutorials/laravel-4-a-start-at-a-restful-api-updated--net-29785" rel="nofollow">http://code.tutsplus.com/tutorials/laravel-4-a-start-at-a-restful-api-updated--net-29785</a></p>
  
  <p>What I want to do is to test the Restful link in the browser URL:</p>
  
  <p>curl command: </p>
  
  <pre><code>$ curl -i --user firstuser:first_password -d 'url=hxxp://google.com&amp;description=A Search Engine' www.lrvlapp.com/api/v1/url
  </code></pre>
  
  <p>this is running ok, and returning the json as expected:</p>
  
  <pre><code>{"error":false,"message":"URL created"}
  </code></pre>
  
  <p>browser URL: I try this: </p>
  
  <pre><code>www.lrvlapp.com/api/v1/url?url=hxxp://google.com&amp;description=A Search Engine
  </code></pre>
  
  <p>no error or anything is given and no URL inserted into the database.</p>
  
  <p>this is the UrlController</p>
  
  <p>class UrlController extends \BaseController {</p>
  
  <pre><code>/**
   * Display a listing of the resource.
   *
   * @return Response
   */
  public function index()
  {
      return 'Hello, API';
  }
  
  /**
   * Show the form for creating a new resource.
   *
   * @return Response
   */
  public function create()
  {
      //
  }
  
  /**
   * Store a newly created resource in storage.
   *
   * @return Response
   */
  public function store()
  {
      $url = new Url;
      $url-&gt;url = Request::get('url');
      $url-&gt;description = Request::get('description');
      $url-&gt;user_id = Auth::user()-&gt;id;
  
      // Validation and Filtering is sorely needed!!
      // Seriously, I'm a bad person for leaving that out.
  
      $url-&gt;save();
  
      return Response::json(array(
          'error' =&gt; false,
          'message' =&gt; 'URL created')
      );
  }
  
  /**
   * Display the specified resource.
   *
   * @param  int  $id
   * @return Response
   */
  public function show($id)
  {
      //
  }
  
  /**
   * Show the form for editing the specified resource.
   *
   * @param  int  $id
   * @return Response
   */
  public function edit($id)
  {
      //
  }
  
  /**
   * Update the specified resource in storage.
   *
   * @param  int  $id
   * @return Response
   */
  public function update($id)
  {
      //
  }
  
  /**
   * Remove the specified resource from storage.
   *
   * @param  int  $id
   * @return Response
   */
  public function destroy($id)
  {
      //
  }
  </code></pre>
  
  <p>}</p>
  
  <p>www.lrvlapp.com is actually my virtual host I setup through the hosts file and apache Virtual Host</p>
  
  <p>The actual location is at: c:\xampp\htdocs\lrvlapp\public</p>
  
  <p>thank you for any answer</p>