skip to Main Content

Laravel 9: Can't write image data to path

I'm using Laravel 9 for making a forum project. Now for this project, I need to upload some images. So at the Controller, I added this: if($request->has('filep')){ $files = $request->file('filep'); foreach ($files as $file) { $this->uploadImage($file, $questionCreated->id, 'question_image'); } }…

VIEW QUESTION

How to prevent laravel changing folder owner – Apache

Now and then we face a destructive issue within a Laravel project: Storage log file production.ERROR: Unable to create lockable file: /var/www/html/storage/framework/cache/data/... Please ensure you have permission to creto create files in this location. #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php(43) When the issue happens…

VIEW QUESTION
Back To Top
Search