title: How to upload large size image by Intervention Image in Laravel 5
body: <p>I'm using <a href="http://image.intervention.io/" rel="nofollow noreferrer">Image Intervention</a> in my project.</p>
  
  <p>My application working smoothly while uploading small size images. But when I try to upload large size image(>2mb), my application stops working!</p>
  
  <p>Even It shows no proper errors. Sometimes It shows <code>Token mismatch</code> error &amp; sometimes the url not redirects.</p>
  
  <p>How to fix it? I've no idea.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$post-&gt;new Post();
  
  if($request-&gt;hasFile('image')){
      $image=$request-&gt;file('image');
      $filename=Auth::user()-&gt;id.'_'.time().'.'.$image-&gt;getClientOriginalExtension();
      $location=public_path('images/'.$filename);
      Image::make($image)-&gt;save($location);
  
      $post-&gt;image=$filename;
  }
  
  $post-&gt;save();
  </code></pre>
  
  <p>I'm using <code>Image intervention</code> for uploading images. But you can suggest alternative of it as well.</p>
  
  <p>Thanks!</p>