title: Laravel: Database is not storing my image but showing me only array
body: <p>I am new to Laravel. I have been trying to save an image to the database. Here is my controller method that I am trying for storing the image</p>
  
  <pre><code>    public function store(Request $request){
          //validation for form
  
          $validate= $request-&gt;validate([
              'name' =&gt; 'required|min:2|max:140',
              'position' =&gt; 'required|min:2|max:140',
              'salary' =&gt; 'required|min:2|max:140',
              'joining_date' =&gt; ''
          ]);
  
  
          //saving form
  
          if($validate){            
              $employee=new Employee;
              $employee-&gt;name =$request-&gt;input('name');
              $employee-&gt;company_name =$request-&gt;input('company_name');
              $employee-&gt;position =$request-&gt;input('position');
              $employee-&gt;salary =$request-&gt;input('salary');
              $employee-&gt;joining_date =$request-&gt;input('joining_date');
              $employee-&gt;user_id= auth()-&gt;user()-&gt;id;
              //image saveing method
              if($request-&gt;hasFile('image')){
                  $image= $request-&gt;file('image');
                  $filename = time() . '.' . $image-&gt;getClientOriginalExtension();
                  Employee::make($image)-&gt;resize(300, 300)-&gt;save( public_path('/employee/images/' . $filename ) );
  
                  $employee-&gt;image= $filename;
  
                }else{
                    return $request;
                    $employee-&gt;image= '';
                };
  
               $employee-&gt;save();
  
          //redirecting to Employee list
              return redirect('/employee/details')-&gt;with('success','Employee Added');
          }
  
  </code></pre>
  
  <p>I could save the form while there was no image and redirect it to the details page. but now when I try with the image, instead of saving it and redirecting to the details route, it returns me to the array of row of database like this:</p>
  
  <pre><code>{
    "_token": "FPHm9AKuEbRlqQnSgHhjPnCEKidi2xr0usgp7RoW",
    "name": "askfjlk",
    "company_name": "laksjsflkj",
    "position": "lkasjfkl",
    "salary": "35454",
    "joining_date": "4654-05-06",
    "image": "testing.png"
  }
  </code></pre>
  
  <p>What did I do wrong here? please help me out this newb.</p>