Level 12
Intervetion has a save method http://image.intervention.io/api/save
I'm new in Laravel. I tried to use image intervention with laravel function StoreAs but it show this error Command (StoreAs) is not available for driver (Gd). Here is my code:
public function postForm( Request $q ){
if($q->hasFile('image')) {
$image = $q->file('image');
$filename = $image->getClientOriginalName();
$image_resize = Image::make($image->getRealPath());
$image_resize->resize(300, 250);
$image_resize->storeAs('image', $filename , 'uploads');
}
}
Please or to participate in this conversation.