sharinganglow
sharinganglow
FFilament
Created by sharinganglow on 10/15/2024 in #❓┊help
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); }
1 replies
FFilament
Created by sharinganglow on 9/4/2024 in #❓┊help
Make hidden repeater
When creating a form, I should display only one repeater, depending on the type field in the same form, after which I use ->visible(fn($record) => $record-> === 'value'), but on the final page, when changing the type to select repeater, it changes only after updating the page
7 replies