I am using laravel 5.2 and faced a problem while working on image uploading. I am getting an error as
NotWritableException in Image.php line 143: Can't write image data to path (C:\Users\SurajLifeean\surj\public\images/)
This code is inside my controller.
$image=$request->file('featured_image');
$filename=time().'.'.$image->getClientOriginalExtension();
$location = public_path('images/',$filename);
Image::make($image)->resize(800,400)->save($location);$post->image=$filename;
i have accross a solution to include at the begining
use Illuminate\Support\Facades\File;
but it didnt help. can any one suggest me a solution