How to Create Resources in FilamentPHP - FilamentPHP for Beginners
HTML-код
- Опубликовано: 10 июл 2024
- Special thanks to Hostinger for sponsoring this video. Hostinger is an incredible web hosting provider where you can set up shared hosting, cloud hosting, VPS hosting, email hosting, and SSL certificates. Hostinger has made a name for itself due to its fast load times, simplicity, free domains, and powerful servers. Here’s my affiliate link for 10% off: www.hostinger.com/codewithdary
In this tutorial, we explore the process of building resources in FilamentPHP. We begin by creating a new resource using the php artisan make:filament-resource command and examining the resulting ProductResource class. We then dive into defining fields for the resource's table overview and form view using the table and form methods, respectively. We also cover various form components, such as TextInput, MarkdownEditor, Toggle, DatePicker, Select, and FileUpload. Additionally, we discuss how to group related fields using Group and Section components and how to set up relationships between resources. Finally, we demonstrate how to delete resources and provide a brief overview of what we'll cover in the next video, including resource modifiers and filters.
📚 New Udemy Course
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
💌 Newsletter
Sign up for my free weekly email newsletter:
newsletter.codewithdary.com/
🔥 Resources
- Twitter: / codewithdary
- Instagram: / codewithdary
- Blog: blog.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
- TikTok: / codewithdary
⌛Timestamps
00:00 - Introduction
02:43 - Resource Properties
05:14 - The table() and form() methods
05:49 - Defining the Table View
08:46 - Creating a Product
12:17 - Defining the Form Views / Functionalities
23:11 - Creating Our First Product Through Filament
23:57 - What The forms() Method Does…
24:43 - Deleting Products
25:10 - Outro
#laravel #filamentphp #hostinger #codewithdary
Excellent tutorial and with great content, thank you for your time and regards
You're very welcome!
crystal clear !!! awesome
Nice job! Thanks!
Thank you too, Gergely
Thank you very much!
You're welcome!
Muchas Gracias, excelente curso, bien explicado y detallista!! Por favor puedes incluir ejemplos de uso de listas select dependientes? Saludos desde Venezuela!
Thank you
thanks
Thank you for watching :)
image upload successful. Image is showing in the edit page. But not showing in the index page. Could you please help me
Have you set your APP_URL?
make sure to update APP_URL and php artisan storage:link
Respect
Thank you
❤❤❤❤❤
❤️
Great video Dary. Do you know if there's a way to change the create action button text for a resource? For example I've got a Receipts resource and want to make it "Add receipt" instead of "New receipt"
Hi @binaryfire, in your ReceiptsResource\Pages\ListReceipts you edit ''actions\CreateAction::make()," to "Actions\CreateAction::make()->label('Add receipt'),".
Hope this helps!
@@BartKieft Thanks!
awesome
Thank you
please is it possible to use filamentPHP and GraphQL??
I did a resource then i do refresh so the resource does not appear any more can you help it happened to me alot 🙏🏻
That's very weird..
Can you please do the next one on multitenancy using panels with filament 3. Kinda stuck on a project 😅
I want to see that tutorial as well, need it for a new project as well
Interesting :)
I've gone over this a couple of times and when I edit a product I see the edit screen and button says "Save Changes" but if I don't change the name and the SKU I'm getting "has already been taken" on Name and SKU. Not sure why that's happening.
I had to use: ->unique(ignoreRecord: true), but not sure why your demo worked, was it a later 'enhancement' to filament 3?
Hmm, I might have cut it out by accident. I usually cut out long pieces where I don't talk 😅
how to move or hide default resource action button (create, create & create another, cancel) ? how to mix it with wizard/step form?
Thank you for the video suggestions :)
@@codewithdary and relation manager please 🙏🏻🙏🏻
why anothers video hidden ??
Because it's getting released on Wednesday and Friday.
#cfbr
Thank you