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

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

  • @anmasa
    @anmasa 10 месяцев назад +2

    Excellent tutorial and with great content, thank you for your time and regards

  • @markjohncapistrano2986
    @markjohncapistrano2986 3 месяца назад

    crystal clear !!! awesome

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

    Nice job! Thanks!

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

    Thank you very much!

  • @JonasReyes
    @JonasReyes 10 месяцев назад +3

    Muchas Gracias, excelente curso, bien explicado y detallista!! Por favor puedes incluir ejemplos de uso de listas select dependientes? Saludos desde Venezuela!

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

    thanks

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

      Thank you for watching :)

  • @faisalahmed5109
    @faisalahmed5109 10 месяцев назад +2

    image upload successful. Image is showing in the edit page. But not showing in the index page. Could you please help me

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

      Have you set your APP_URL?

    • @yasyaindra
      @yasyaindra 10 месяцев назад +3

      make sure to update APP_URL and php artisan storage:link

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

    Respect

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

    ❤❤❤❤❤

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

    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"

    • @BartKieft
      @BartKieft 10 месяцев назад +2

      Hi @binaryfire, in your ReceiptsResource\Pages\ListReceipts you edit ''actions\CreateAction::make()," to "Actions\CreateAction::make()->label('Add receipt'),".
      Hope this helps!

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

      @@BartKieft Thanks!

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

    awesome

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

    please is it possible to use filamentPHP and GraphQL??

  • @randahmedali2280
    @randahmedali2280 4 месяца назад +1

    I did a resource then i do refresh so the resource does not appear any more can you help it happened to me alot 🙏🏻

  • @bencroacademy
    @bencroacademy 10 месяцев назад +2

    Can you please do the next one on multitenancy using panels with filament 3. Kinda stuck on a project 😅

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

      I want to see that tutorial as well, need it for a new project as well

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

      Interesting :)

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

    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.

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

      I had to use: ->unique(ignoreRecord: true), but not sure why your demo worked, was it a later 'enhancement' to filament 3?

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

      Hmm, I might have cut it out by accident. I usually cut out long pieces where I don't talk 😅

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

    how to move or hide default resource action button (create, create & create another, cancel) ? how to mix it with wizard/step form?

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

      Thank you for the video suggestions :)

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

      @@codewithdary and relation manager please 🙏🏻🙏🏻

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

    why anothers video hidden ??

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

      Because it's getting released on Wednesday and Friday.

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

    #cfbr