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.

Комментарии • 47

  • @WalidTouati91
    @WalidTouati91 6 дней назад

    thank you sir, your doing a very good and useful tutorials❤

  • @einnlleinhatt_
    @einnlleinhatt_ 9 месяцев назад +1

    After watching it 2 times im finally understand. Thank you for this knowledge

    • @yelocode
      @yelocode  9 месяцев назад

      Glad to hear that

  • @user-vi2fp6dl7b
    @user-vi2fp6dl7b 9 месяцев назад +1

    Thank you very much!

  • @houmamelazar6337
    @houmamelazar6337 9 месяцев назад +2

    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

  • @abirbd369
    @abirbd369 11 месяцев назад +2

    this series is a gem . waiting for the next lecture . would u pls give us a lecture about filament multi panel concept?

    • @yelocode
      @yelocode  11 месяцев назад

      Thanks for watching. Will for sure cover multiple panels in the up coming episodes

  • @mogr488
    @mogr488 8 месяцев назад +1

    Amazing, thank you.

    • @yelocode
      @yelocode  8 месяцев назад

      Thanks for watching

  • @__Cypher
    @__Cypher 10 месяцев назад +1

    another awesome content. i think we can keep the category inside the edit if admin wants to change the category

    • @yelocode
      @yelocode  10 месяцев назад

      Thanks for watching.

  • @alanrodrigoortegabalboa9350
    @alanrodrigoortegabalboa9350 11 месяцев назад +1

    Many thanks, I just needed this, please continue with filament videos. Could you do some of multitenancy?

    • @yelocode
      @yelocode  11 месяцев назад +1

      Thanks for watching. Will be uploading more videos soon. Will for sure cover multitenancy in the course.

    • @alanrodrigoortegabalboa9350
      @alanrodrigoortegabalboa9350 10 месяцев назад

      I will wait for these, thanks.

  • @amouchaldev
    @amouchaldev 10 месяцев назад +1

    We would appreciate more videos in this tutorial

    • @yelocode
      @yelocode  10 месяцев назад +1

      Thank you, will try to make, more videos like this.

  • @AmirAmirian-cx5rv
    @AmirAmirian-cx5rv 6 месяцев назад

    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?

  • @engenglish610
    @engenglish610 7 месяцев назад +1

    Is it possible to have a form that contains different fields in function of what a user select? I mean a dynamic form.

  • @MrHamidkurd
    @MrHamidkurd 10 месяцев назад +1

    Great

    • @yelocode
      @yelocode  10 месяцев назад

      Thanks For waching Hamid.

  • @joaopoliceno8844
    @joaopoliceno8844 5 месяцев назад +1

    Very good.

  • @prakashpokhrel9912
    @prakashpokhrel9912 6 месяцев назад

    after adding relation manager table, for create after we press the create button then how can we set the value for some of columns

  • @marciozotelli
    @marciozotelli 10 месяцев назад +1

    Nice vídeo

  • @HamadAbdulla_7
    @HamadAbdulla_7 11 месяцев назад +2

    thanks boss Can You Make filamentphp page video

    • @yelocode
      @yelocode  11 месяцев назад +2

      Thanks for watching. Do you mean custom pages? Yes I will cover that too

  • @azadehghasemi3244
    @azadehghasemi3244 7 месяцев назад

    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?

  • @lucasger89
    @lucasger89 9 месяцев назад

    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.

  • @leeiberry
    @leeiberry 9 месяцев назад

    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 !

    • @leeiberry
      @leeiberry 9 месяцев назад

      PS great video series :)

  • @ahmadrezaishan9191
    @ahmadrezaishan9191 5 месяцев назад

    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.

    • @ahmadrezaishan9191
      @ahmadrezaishan9191 5 месяцев назад

      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'),

  • @yuliarahma1300
    @yuliarahma1300 11 месяцев назад +1

    can you make a use case a multi panel with roles management plugin, thnaks. 🙏🏻, (and can you change the icon users resources 🤣)

    • @yelocode
      @yelocode  11 месяцев назад

      Thanks for watching. Will try to cover multiple panels and role management later on in the course. Sure thing will change the battery icon 😅😂

  • @ousssika5359
    @ousssika5359 10 месяцев назад +1

    Thanks for the videos, How to change langage on filament to french ?

    • @yelocode
      @yelocode  10 месяцев назад

      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.

  • @hasithudayanga6160
    @hasithudayanga6160 11 месяцев назад +1

    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?

    • @yelocode
      @yelocode  11 месяцев назад

      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

  • @engenglish610
    @engenglish610 7 месяцев назад +2

    It's so difficult to choose what can I use!!! Only livewire or filament!!!!

    • @1337kaas
      @1337kaas 7 месяцев назад

      Why not both? Get the best of both worlds

    • @yelocode
      @yelocode  6 месяцев назад

      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

  • @amouchaldev
    @amouchaldev 10 месяцев назад +1

    My eyes can't believe what they see

  • @wmafendi
    @wmafendi 11 месяцев назад +2

    very nice