multiple file upload

Hello everyone, I broke my brain over the solution of the problem: I have an unchangeable form that is shown during moderation, I need to add a display of several unchangeable pictures there, which are stored in the directory, where its name is the id of the picture in the database These images are stored in the images table as follows: id | 1 imageable_id | 31446 imageable_type | App\Models\Question path | questions/31446/whoooa_by_ready_2017_dbhp7tl-fullview.jpg type | source created_at | 2024-10-02 10:39:40 updated_at | 2024-10-02 10:39:40 And related to the model of issues with such a connection: public function sourceImages(): MorphMany { return $this->morphMany(Image::class, 'imageable') ->where('type', self::SOURCE_IMAGE_TYPE); }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server