Relationship Manager (1-1 & 1-M) | Filament 3 Tutorial for Beginners EP7
HTML-код
- Опубликовано: 3 сен 2023
- Welcome to our Filament php 3 course, in this course we will cover all the basis needed to build dynamic admin panels. Today we will cover how handle 1 to 1 and 1 to many relationships in filament and cover the relationship manager.
filamentphp.com/docs/3.x/pane...
Filament 3. documentation link :
filamentphp.com/docs/3.x/pane...
ravel.com/
Course Playlist ( next episode ):
• Filament 3 course for ...
My Livewire 3 Course :
• Laravel Livewire 3 Cou...
If you would like me to make more Filament 3 videos, please let me know by liking the video and commenting what you like to learn next.
What is Filament PHP:
A free and open source admin panel builder for laravel using the TALL stack that allows you to build beautiful admin panel pages in just a few minutes.
thank you sir, your doing a very good and useful tutorials❤
After watching it 2 times im finally understand. Thank you for this knowledge
Glad to hear that
Thank you very much!
very good course. Whut about nested relationship like for an example a user which have a post which has a category. How to access the category from the user and same in the reverse way
this series is a gem . waiting for the next lecture . would u pls give us a lecture about filament multi panel concept?
Thanks for watching. Will for sure cover multiple panels in the up coming episodes
Amazing, thank you.
Thanks for watching
another awesome content. i think we can keep the category inside the edit if admin wants to change the category
Thanks for watching.
Many thanks, I just needed this, please continue with filament videos. Could you do some of multitenancy?
Thanks for watching. Will be uploading more videos soon. Will for sure cover multitenancy in the course.
I will wait for these, thanks.
We would appreciate more videos in this tutorial
Thank you, will try to make, more videos like this.
thanks for good teaching. i have a problem in filament, Relationship in Form not saving on create action but work on edit form. can you help?
Is it possible to have a form that contains different fields in function of what a user select? I mean a dynamic form.
Great
Thanks For waching Hamid.
Very good.
Thank you
after adding relation manager table, for create after we press the create button then how can we set the value for some of columns
Nice vídeo
Thanks
thanks boss Can You Make filamentphp page video
Thanks for watching. Do you mean custom pages? Yes I will cover that too
How to add the exists posts into category in edit/create form, you just Taught how to add a new post, but how to add an exist post?
Hello.
I get "Livewire\Exceptions\ComponentNotFoundException
Unable to find component: [App\Filament\Resources\PostsRelationManager]".
What did I do wrong?
Edit:
solved using: RelationManagers\PostsRelationManager::class, on the relations array.
in the table function , how would you display description/name for a foreign key field .. ie say this table in the video had a column for statusID and status was a table with 10 rows ... and the primary key/ID was statusID , how would i display in the table StatusDesc from the status table ? ie StatusID = 3 , Status Desc = " cool ", Note I have an example working for a form but it does to transfer to the table definition !
PS great video series :)
how can concat 2 column of relation to show it in table or select input? like this example that about city and state. these columns are in one table named 'geoPos'. the relation method is geoPos().
return $table
->columns([
Tables\Columns\TextColumn::make('geoPos.state' . ' - ' . 'geoPos.city')
->label('location'),
in this code, nothing show in 'location' column of the table.
I've found the answer and am eager to share it, hoping it proves useful.
TextColumn::make('city_id')
->formatStateUsing(function (Model $record) {
return $record->geoPos->title . ' - ' . $record->geoPos->parent->title;
})->label('location'),
can you make a use case a multi panel with roles management plugin, thnaks. 🙏🏻, (and can you change the icon users resources 🤣)
Thanks for watching. Will try to cover multiple panels and role management later on in the course. Sure thing will change the battery icon 😅😂
Thanks for the videos, How to change langage on filament to french ?
There is a filament plugin that makes this super easy : github.com/bezhanSalleh/filament-language-switch
I have tested it before and it does have French as well.
How can we change specific field on a form. For example i have a input and next to that input i have a button. When i change the input and click the button i want to update that exact value on the DB. also i want to mount that value back to that field without reloading the page. How can i do that?
You can use actions for a use case like this, they allow you show a modal with any custom form you like and perform an update operation on your model. I will be covering them in the upcoming videos .
filamentphp.com/docs/3.x/forms/actions#adding-a-hint-action-to-a-field
The documentation has an example that seems to be similar to your use case
It's so difficult to choose what can I use!!! Only livewire or filament!!!!
Why not both? Get the best of both worlds
You can use both at the same time. Filament uses livewire as well. You can for example use filament for your admin panel and Livewire for any custom interactive components for your the user facing pages
My eyes can't believe what they see
:)
very nice
Thanks