Resize image in Laravel 5.2
<p>Can anyone help me how to implement resizing image in Laravel?</p>

<p>I have this code only:</p>

<pre><code>if($request-&gt;hasFile('image')){
    if (Input::file('image')-&gt;isValid()) {
        $file = Input::file('image');
        $destination = base_path() . '/public/images/ServiceImages';
        $extension = Input::file('image')-&gt;getClientOriginalExtension();
        $fileName = rand(111,99999).'.'.$extension;

        if(!empty($data['Image'])){
            unlink($destination.$data['Image']);
        }

        $file-&gt;move($destination, $fileName);
        $service-&gt;image=$fileName;
    }
}
</code></pre>