I am currently using the Intervention Image package within Laravel.
I am wanting a user to have the ability to upload a logo. So far, I have the following:
public function postUpdateLogo($id) {
if(Input::file())
{
$image = Input::file('logo');
$filename = time() . '.' . $image->getClientOriginalExtension();
\Image::make($image->getRealPath())
->resize(300, 300)
->save('user/'. $id . '/' . $filename);
$user->image = $filename;
$user->save();
}
}
But the error I'm getting upon submission is:
NotWritableException in Image.php line 143: Can't write image data to path (user/1/1439491280.png)
Any help would be hugely appreciated.