title: "Call to undefined method Illuminate\Support\Facades\File::save()"
body: <p>I want stored data in database with image path. I write following function but  following error occur.</p>
  
  <blockquote>
    <p>Call to undefined method Illuminate\Support\Facades\File::save()</p>
  </blockquote>
  
  <p>which namespace i add?</p>
  
  <pre><code>function insert(Request $req)
     {
  
         $user=new file;    
         $user-&gt;name=Input::get('name');
         $user-&gt;address=Input::get('address');
         $user-&gt;created_at=Input::get(now());
         $user-&gt;updated_at=Input::get(now());
  
         if(Input::hasFile('image'))
         {
          $file=Input::file('image');
          $file-&gt;move(public_path().'/',$file-&gt;getClientOriginalName());  
          $user-&gt;photo=$file-&gt;getClientOriginalName();    
         }
  
         $user-&gt;save();
  
         return redirect('/');
  
     }
  </code></pre>