skip to Main Content

Test multi storage in laravel

I have a issue while trying to mock multi Storage in laravel test enviromnment. Here is my my code: public function sftp ( Sibling $sibling ) { $file_paths = Storage::build($sibling->config) ->files($this->track->track_token); Storage::disk('public') ->makeDirectory($this->track->track_token); foreach ( $file_paths as $file_path ) {…

VIEW QUESTION

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
Back To Top
Search