Great walk through! I really appreciated the break down of the use of array_diff.
@mdazhardware9 ай бұрын
Great, the tutorial I was looking for, thanks a lot.
@najatiscoding4 ай бұрын
Thank you so much for this, I've been having trouble with images in Filament. I'm importing products into my Laravel project with images from the public folder, but when I try to edit an imported product in the edit form, the image doesn't show up in the file upload field. Is this because I'm working locally, and will it be resolved in production, or is there another issue causing this?
@Tuto19024 ай бұрын
Make sure the url for the image is the correct one. Also, it might be a good idea to go through the File storage section of the docs to make sure you're not missing anything important laravel.com/docs/11.x/filesystem#the-public-disk
@vugarkhalil9 ай бұрын
Respect
@HindAALOUCH-u7x3 ай бұрын
Hello Tuto, is this available on relationManager too? For example I have ProjectRelationManager with the FileResource via hasMany files relationship in the ProjectResource!! I want to ask you about files preview in filament, is it possible for pdf or docx ? I tried the openable() attribute of FileUpload, but I couldn't open the file. Thank you in advance.
@Tuto19023 ай бұрын
I haven't tried it with pdf or docx. My guess is that it does not have previews. It should be available for relation managers as well.
@HindAALOUCH-u7x3 ай бұрын
@@Tuto1902 It worked for PDF and it's available for relation managers. I tried it and it worked. Thank you.
@khairulazmi91749 ай бұрын
what microphone did you use ?
@Tuto19029 ай бұрын
www.streamplify.com/product/microphone/mic-arm/
@kincortezao20249 ай бұрын
Nice job, have git from this project?
@Tuto19029 ай бұрын
Yes. Same repo from the Used Cars Livestream project: github.com/tuto1902/laravel-used-cars It's still on going at this point btw
@mahasiswago4 ай бұрын
Hello friends, I'm learning to make a Laravel application using Jetstream (user) and Filament (admin). Why doesn't the image sent by (user) appear in the Filament (admin) edit table? Can anyone help me here? thank you, god bless.🙏
@Tuto19024 ай бұрын
I feel like I would need more information to go on. Try posting your question on the discord server with code snippets of where the problem occurs. Link in the description
@yabikami11659 ай бұрын
Your VSCODE theme and icons please
@Tuto19029 ай бұрын
Catpuccin for both
@yabikami11659 ай бұрын
@@Tuto1902 Merci Beaucoup
@komolafetemmy18677 ай бұрын
Does this work for spatie media library
@Tuto19027 ай бұрын
I couldn't tell if it does since I haven't tried that plugin myself. What I can tell from their documentation (and video tutorial) is that the package already takes care of removing files when models are deleted. But then again, my example only covers scenarios where your media is represented by a json column (array) while the package will take care of managing media in separate models/tables. spatie.be/courses/discovering-laravel-media-library/deleting-media
@trav1strav1s839 ай бұрын
Why not Observer?
@Tuto19029 ай бұрын
Observer is a valid choice too. I just figured since it was only a few lines of code, it would benefit from being all in one place and not spread out across multiple classes.
@ivanphyo88799 ай бұрын
AWESOME THANKS
@deidomandoura3 ай бұрын
Why am I always getting the old value on $car->images instead of the current value? Could anyone please explain this to me? And how could I do this method on a OneToMany relationship rather than only a JSON column? I tried to use $car->('images.url') but it returns null
@Tuto19022 ай бұрын
Try adding a new car_id column to your images table. Then add a HasMany relationship called images to the Car model and access it like this: $car->images The above will return a collection of Image models. You can't directly access the url. Instead you can iterate over the images collection and access each url individually foreach($car->images as $image) { dd($image->url); }