Frédéric
Frédéric
FFilament
Created by Frédéric on 6/29/2024 in #❓┊help
field value disapear during my slug generation
Thank's for the answer but I don't understand how that can help me 😄
11 replies
FFilament
Created by Frédéric on 6/29/2024 in #❓┊help
field value disapear during my slug generation
Yes, maybe it's because it's on myu local ... ^^^'
11 replies
FFilament
Created by Frédéric on 6/29/2024 in #❓┊help
field value disapear during my slug generation
Thank's for your answer. 😄
11 replies
FFilament
Created by Frédéric on 6/29/2024 in #❓┊help
field value disapear during my slug generation
Thx for the answer but not the best solution. I can't just specify the input to updat and not update the other ?
11 replies
FFilament
Created by Frédéric on 6/29/2024 in #❓┊help
field value disapear during my slug generation
Hello ! No one ?
11 replies
FFilament
Created by Frédéric on 6/27/2024 in #❓┊help
Joint cast between create and update
That's work thx !!!
7 replies
FFilament
Created by Frédéric on 6/27/2024 in #❓┊help
Joint cast between create and update
Thx it's exacly that ! But When I update I need to refresh the page to see it. Can I update the value of my input ?
7 replies
FFilament
Created by Frédéric on 4/20/2024 in #❓┊help
Custom header widget with HTML
Thx for your answer! That my mistake !
5 replies
FFilament
Created by Frédéric on 4/8/2024 in #❓┊help
Navigation mixe groups and items
little up 😄
5 replies
FFilament
Created by Frédéric on 3/26/2024 in #❓┊help
How do custom field : Dynamic datalist + Input array
That's my main problem 😅 I don't know how to do it. Filament documentation is quite empty with field / layout ^^
8 replies
FFilament
Created by Frédéric on 3/26/2024 in #❓┊help
How do custom field : Dynamic datalist + Input array
So that not what i need, any other suggestion ?
8 replies
FFilament
Created by Frédéric on 3/26/2024 in #❓┊help
How do custom field : Dynamic datalist + Input array
Yes but how make it. I saw in the documentation that we need to a button to add a new element with a repeater. I need the new element when I click on the datalist ...
8 replies
FFilament
Created by Frédéric on 3/13/2024 in #❓┊help
FileUpload: Button to change the image.
I try te remake a upload file with view field. If I understand well, to work I need to send the picture in ajax in the temp folder and store the name in an input with name data.${model attribute}. after I have te make the picture treatment by my own
4 replies
FFilament
Created by Frédéric on 3/13/2024 in #❓┊help
FileUpload: Button to change the image.
Oki 😕 thx for all your answer and sorry if I’m boring 😅 I new in filament and try to remake feature I had with other back office.
4 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
I don't know if it should be the default behaviour but we should can choose to store or the filename or filepath. I'm confused, the filament's default behaviour is too store the filepath ? right ?
75 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
you confuse me ^^' I install filament on two applications,the first one I let the default : FileUpload::make('carrousel') ->image() ->getUploadedFileNameForStorageUsing(fn($get) => CarHelper::defineImageName($get)) ->directory(fn($get) => 'images/cars/'. $get('plate')) ->imagePreviewHeight(160) ->columnSpanFull() ->multiple() ->appendFiles(false) ->reorderable() it register: ["images/cars/TJ182MI/car-1-1.webp","images/cars/TJ182MI/car-1-2.webp","images/cars/TJ182MI/car-1-3.webp","images/cars/TJ182MI/car-1-4.webp"]
Well, maybe that's why it's the default 😉
So I don't understand this ^^'
You'd need to update the DB data.
With a big amount of datas I prefer juste change the method in my model who generate the path !
75 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
Thx to your help, juste a single question, if during the application's life I decide to change the structure file, how can I manage easily if the filepath is fully in the db ? with only the filename in the database, i juste need to change my config file, it's seem to be a good practice.
75 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
you speak abount this ? $this->saveUploadedFileUsing(static function (BaseFileUpload $component, TemporaryUploadedFile $file): ?string { try { if (! $file->exists()) { return null; } } catch (UnableToCheckFileExistence $exception) { return null; } if ( $component->shouldMoveFiles() && ($component->getDiskName() == (fn (): string => $this->disk)->call($file)) ) { $newPath = trim($component->getDirectory() . '/' . $component->getUploadedFileNameForStorage($file), '/'); $component->getDisk()->move((fn (): string => $this->path)->call($file), $newPath); return $newPath; } $storeMethod = $component->getVisibility() === 'public' ? 'storePubliclyAs' : 'storeAs'; return $file->{$storeMethod}( $component->getDirectory(), $component->getUploadedFileNameForStorage($file), $component->getDiskName(), ); });
75 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
Apparently i do not want a default implementation because I would like save only the filename and not the filepath ^^'
75 replies
FFilament
Created by rabol on 5/24/2023 in #❓┊help
How come filename include the directory
here ?
75 replies