title: laravel uploading pic path showing zero
body: <p>WHen uploading, all data is inserted in table except pic_path column contains 0. Am i doing wrong when processing file uploaded:</p>
  
  <p>This is the controller:</p>
  
  <pre><code>if(Session::has('userLogged'))
          {
              if($_POST)
              {
                  $file;
                  if (Input::hasFile('pic'))
                  {
  
                      $file = Input::file('pic');
                      print_r($file);
                  }
  
                  $validator = $this-&gt;validate(Input::all(), $rules);
  
                  if ($validator != null)
                  {
  
                      return Redirect::to('basicDetails')-&gt;withErrors($validator);
  
                  }else{
  
                      $title = Input::get('title');
                      $summary = Input::get('summary');
                      $description = Input::get('description');
                      $destinationPath = base_path() . '/public/img';
                      $file-&gt;move($destinationPath);
                      $path = $file-&gt;getRealPath();
                      $personModel = new Course;
                      $personeModel-&gt;basicDetails($title, $summary, $description, $path);
                  }
  </code></pre>
  
  <p>and this is form url:</p>
  
  <pre><code>{{ Form::open(array('action' =&gt; 'PersonController@basic','files' =&gt; true)) }} 
  </code></pre>
  
  <p>Thanks, </p>