How to Define Relationships in FilamentPHP - FilamentPHP for Beginners

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

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

  • @MG-wx8yx
    @MG-wx8yx 4 месяца назад

    This video has tones of useful information. Thanks so much for your effort, you are helping so much to us juniors. I have one request though so I had to edit this comment, if you can make a video and provide the link show me where it's done like this: I want to add additional information in the pivot table of the many-to-many relationship (the table which contains the FK of for example students and guardians since a student can have multiple guardians and a guardian can have multiple students as his/her dependants. This additional info/column can be anything, in my case it is the actual relationship between them, for example; "Father", "Mother" etc so that at any time when displaying the student info, users can instantly know how the student is related to the guardian and vice versa.
    Thanks in advance.

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

    Would love to see a video on tracking inventory of the products based on the sales.

  • @ehsanbagherzadegantalkhoun1479
    @ehsanbagherzadegantalkhoun1479 Год назад +1

    Thank you Dary, Would you please focus on website pages as well, I mean template and some simple pages like products, Cart, ...

  • @dronix1969
    @dronix1969 4 месяца назад

    Hello , the Laravel videos with filament are very good, I am new to this but I have learned a lot with your videos, thank you very much, I have a question and if you can make a video explaining it, it would be much better, I tell you, I have a project and I have two models that are related course and enrollment of the course model I select the ID but I also want to bring the first and last name, meaning that when I select the ID the first and last name fields will auto-fill. any suggestion.

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

    but where the products inserted to an order are saved ?

  • @vugarkhalil
    @vugarkhalil Год назад +2

    Respect

  • @bikerbreed
    @bikerbreed Год назад +1

    Nice video.. Thank you.
    I am getting an error: 1364 Field 'unit_price' doesn't have a default value
    Below is the code in the form as you have added:
    Forms\Components\TextInput::make('unit_price')
    ->label('Unit Price')
    ->required()
    ->dehydrated()
    ->numeric()
    ->disabled(),
    Its because of disabled (which doesnt submit the value to database) : you quoted this but please let us know how to fix as well.
    Great videos..

    • @codewithdary
      @codewithdary  Год назад

      Thank you. I haven't made any changes I guess, here is the source code: github.com/codewithdary/hostinger-filament

  • @erlan491
    @erlan491 4 месяца назад

    Hallo Sir, sorry... this wizard form for order item cannot inset to databse? Why...

    • @erlan491
      @erlan491 4 месяца назад

      Owh i see, i'm forget insert Repeater and relationship... Solved thank you

  • @HamadAbdulla_7
    @HamadAbdulla_7 Год назад +2

    Thanks boss Can You Make filamentphp page video

  • @nazar87ali
    @nazar87ali Год назад +1

    thank pro

  • @GergelyCsermely
    @GergelyCsermely Год назад

    Thanks

  • @ryanm.122
    @ryanm.122 6 месяцев назад

    @codewithdary Is there a way to customize the name/title that is displayed for a relationship? For example, @1:40 Select::make('brand_id')->relationship('brand', 'name'), I want to do something for Select::make('user_id')->relationship('user', 'full_name') where full name is an accessor that concatenates first name and last name... In nova, they have a title() function you can use to override the displayed value
    /**
    * Get the value that should be displayed to represent the resource.
    *
    * @return string
    */
    public function title()
    {
    return $this->first_name . " " . $this->last_name;
    }