Problem creating directory in 'tmp'

I get an error when uploading an image and I think it must be a permissions issue.

Image ius saved like this

$image_name = 'logo-' . $client->id. '-' . $client->slug . '.' . $image->getClientOriginalExtension();
        $glide = \GlideImage::create($image)->modify([
            'w' => 300,
            'h' => 300
        ])->save(base_path() . '/resources/assets/img/clients/' . $image_name);

I've set permission to 755 on the storage and bootstrap folders.

The resources directory and all the directories beneath it have the same permissions as the storage directory (I did not set those, they just seem to be like that by default).

I'm fairly sure I've managed to set up the permissions correctly but I can seem to get the rid of the following error...

Exception in Local.php line 106:
Impossible to create the root directory "/tmp/phpTabBw1".

It works fine on my local machine through MAMP Pro

I signed up for a trial of Forge to try and rule out my server setup and this has exactly the same issue so the problem must lie with my application.

I've checked the permissions on the tmp folder on both servers and they both appear to be set to 777 by default.

Fairly new to Laravel so perhaps I've done something wrong. the image should get resized using Glide after upload but I don't know if that is relevant.

Can anyone help me?

Sign in to participate in this thread!

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