Support the ongoing development of Laravel.io →
posted 10 years ago
Installation
Last updated 2 years ago.
0

Go in to your app/storage folder and make sure logs is set too. What permissions are you giving it?

Last updated 2 years ago.
0

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 {} ;

Last updated 2 years ago.
0

Temporarily try

sudo chomd -R 777 logs

What user / group is your webserver running under? 5 is only read and execute (no write).

Last updated 2 years ago.
0

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;
        }
Last updated 2 years ago.
0

What's the issue now?

Last updated 2 years ago.
0

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 ?

Last updated 2 years ago.
0

What error are you getting now?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sger sger Joined 15 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.