title: Image resize Laravel
body: <p>I have a question about to resize an image in Laravel with intervention.io (Link: <a href="http://image.intervention.io/" rel="nofollow noreferrer">http://image.intervention.io/</a></p>
  
  <p>My question is that I don't understand how to input in my code, can somebody help me with showing the example? Thank you in advance!</p>
  
  <p>MY CODE: </p>
  
  <p><strong>account.blade.php:</strong></p>
  
  <pre><code>@extends('layouts.master')
  
  @section('title')
      Account
  @endsection
  
  @section('content')
      &lt;section class="row new-post"&gt;
          &lt;div class="col-md-6 col-md-offset-3"&gt;
              &lt;header&gt;&lt;h3&gt;Your Account&lt;/h3&gt;&lt;/header&gt;
              &lt;form action="{{ route('account.save') }}" method="post" enctype="multipart/form-data"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="first_name"&gt;First Name&lt;/label&gt;
                      &lt;input type="text" name="first_name" class="form-control" value="{{ $user-&gt;first_name }}" id="first_name"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="image"&gt;Image (only .jpg)&lt;/label&gt;
                      &lt;input type="file" name="image" class="form-control" id="image"&gt;
                  &lt;/div&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Save Account&lt;/button&gt;
                  &lt;input type="hidden" value="{{ Session::token() }}" name="_token"&gt;
              &lt;/form&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  
  
      @if (Storage::disk('local')-&gt;has($user-&gt;first_name . '-' . $user-&gt;id . '.jpg'))
          &lt;section class="row new-post"&gt;
              &lt;div class="col-md-6 col-md-offset-3"&gt;
                  &lt;img src="{{ route('account.image', ['filename' =&gt; $user-&gt;first_name . '-' . $user-&gt;id . '.jpg']) }}" alt="" class="img-responsive"&gt;
              &lt;/div&gt;
          &lt;/section&gt;
  
      @endif
  @endsection
  </code></pre>
  
  <p><strong>User.php:</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Contracts\Auth\Authenticatable;
  use Illuminate\Database\Eloquent\Model;
  
  class User extends Model implements Authenticatable
  {
      use \Illuminate\Auth\Authenticatable;
  
      public function posts()
      {
          return $this-&gt;hasMany('App\Post');
      }
  
      public function likes()
      {
          return $this-&gt;hasMany('App\Like');
      }
  }
  </code></pre>