Adding watermark on image from databases in Laravel 5.3
问题 I am trying to add watermark on image from database in Laravel using Intervention Image package. In my database table I am saving the path of the image. I am using Accessors in my model to get access to the field of the image path but I am getting this error: Method insert does not exist. Here is my model: Here is my blade: 回答1: public function getFilePathAttribute($value){ $img = Image::make(public_path($value)); //your image I assume you have in public directory $img->insert(public_path(