Go in to your app/storage folder and make sure logs is set too. What permissions are you giving it?
sudo chmod -R 755 logs
i'v changed the folder with
find app/storage -type d -exec chmod 777 {} ; find app/storage -type f -exec chmod 777 {} ;
Temporarily try
sudo chomd -R 777 logs
What user / group is your webserver running under? 5 is only read and execute (no write).
oh ok finaly some errors this is the problem finally
public function save($path = null, $quality = 90)
{
$path = is_null($path) ? ($this->dirname .'/'. $this->basename) : $path;
$saved = @file_put_contents($path, $this->encode(pathinfo($path, PATHINFO_EXTENSION), $quality));
if ($saved === false) {
throw new Exception\ImageNotWritableException;
}
i'm using intervention for image display, save.
the problem is when i'm trying to save image solved it with
Image::make($image->getRealPath())->resize(100, 100)->save(public_path().'/img/products/'.$filename);
public_path() gives me the correct path
thanks again Kreitje any suggestions how to remove public folder ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community