Become a PRO at Using Components in Laravel

Поделиться
HTML-код
  • Опубликовано: 5 июн 2024
  • This video will show you learn you Components in Laravel from zero to hero. With the usage of Components, Laravel allows you to make reuseable, independent and decoupled Component within your Laravel Blade templating engine. We will be starting off with diving into the Component class and view, creating Components through the CLI, passing data and variables to Components, working with subdirectories within Components, Slots, Component Attributes and finally, the usage of inlined components - Want to learn the most popular PHP framework? Laravel makes your development process a lot easier without sacrificing your applications functionalities.
    📚 New Udemy Course
    If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, 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...
    📲 Let’s plan a meeting
    Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
    💌 Newsletter
    Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
    🔥 Resources
    - PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
    - TikTok: / codewithdary
    - Instagram: / codewithdary
    - Twitter: / codewithdary
    - Blog: blog.codewithdary.com/
    - Newsletter: newsletter.codewithdary.com/
    - Patreon: www.patreon.com/user?u=30307830
    - GitHub: github.com/codewithdary/larav...
    🔗 Useful links
    - Laravel 9 Course: • Laravel Tutorial for B...
    - Components Docs: laravel.com/docs/9.x/blade#co...
    - Blog Template: github.com/codewithdary/larav...
    - Final Repo: github.com/codewithdary/compo...
    📋 Table of Content
    00:00 - Introduction
    01:04 - Our current application
    02:49 - Creating our first Component
    05:40 - Component class
    08:13 - Passing data to components
    10:07 - Subdirectories for our Components
    11:22 - Passing variables to components
    13:20 - Components inside Components
    15:06 - Slots
    17:31 - Component Attributes
    24:43 - Component Props
    30:29 - Inline Components
    32:14 - Outro
    #laravel #components #blade #frontend

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

  • @johnnyokito6356
    @johnnyokito6356 2 месяца назад +1

    That is what I call an awesome crash course! Great job man!

  • @mkwaliyo
    @mkwaliyo Год назад +4

    Simple straightforward and easy to follow. Thanks man

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

    Please make detailed videos like this about each and every features in laravel. That would completely enhance our career.

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

    your channel is the place of sanity for learning laravel ! thankyou so much for you content !

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

      That's so sweet, thank you so much

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

    Thank you very much for this wonderful tutorial. Now I have very good understanding on the topic.

  • @MdRasen
    @MdRasen Месяц назад

    Great tutorial! Easy to learn 🎉

  • @kemal6039
    @kemal6039 Год назад +3

    Thanks so much! I didn't even know what components are and now I pretty much turned my entire project into components 😂 So useful and so nice to read. Especially those bootstrap alert divs!

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

      Oh hell yeah, those are probably the best examples when it comes to Components!

  • @gincaza1913
    @gincaza1913 9 дней назад

    man your content is awesome

  • @tacanda6479
    @tacanda6479 Год назад +5

    Your tutorial got me a job as junior software engineer 😀. Can you make a tutorial where we can upload videos including video size and extensions?

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

      Wow, that’s insane!! Congratulations!

  • @gabrielnzete8913
    @gabrielnzete8913 6 месяцев назад +1

    thanks, really learnt a lot haven stopped using laravel when it was 6. kudos

  • @comminatinmarkitingdealwit5614
    @comminatinmarkitingdealwit5614 6 месяцев назад +1

    Thank you so much, Dary! I love this tutorial

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

      Thank you for watching, I’m happy to help ❤️🙏🏽

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

    Really nice! I wanted to know more about the components actually. Thank you Dary ❤️🥺

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

    Thank you for the tutorial teacher Dary.

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

    Boas, muito obrigado pela dica Sr Mr AndyPee, Muitos Abraços.

  • @Patrick-jn9je
    @Patrick-jn9je 10 месяцев назад +1

    I got confused with components when I dabbled with it while reading the documentation but watching your video made me understand it better. Thank you for providing educational content for us visual learners.

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

      You're welcome, Patrick!!

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

    wow. this is great. thank you for giving this tutorial.

  • @TarasShabatin
    @TarasShabatin Год назад +3

    😱😱😱I was scared, by the sound effects, a couple of times, while you showed your social networks info😱😱😱😅

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

      I have to make sure my viewers are awake and don't fall asleep because of my voice 😂

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

      @@codewithdary😅😅

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

    Amazing explanation 👏
    a great thanks Dary❤

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

    Thanks for the great material 🙏🏻

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

      Happy to help brother :)

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

    easy and simple thanks sir

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

    The best explanation about components

  • @cryswerton-silva
    @cryswerton-silva Год назад +1

    Nicee! Thanks a lot!

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

      Thank you for watching Cryswerton!

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

    Hello
    Your tutorial was really great, thank you🙏

  • @luxe.freedom.master
    @luxe.freedom.master Год назад

    What color style and packages are u using for vs code its awesome

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

    Thanks a lot Dary

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

    Great, thanks 🙏

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

    Thanks for the tutorial Dary; very useful. One question; what factors go into deciding between a class based component and an anonymous component? Can you do things with the class based component that cannot be done with the anonymous component?

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

      I find class component very useful if I want to define the variables I have to use within a component. If you work with multiple developers on projects, they might pass in variables that another might not. Therefore, It will be good to define class components.

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

    What theme did you use? I like it so much

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

    Which font family you are using for CSS?? That's cool font

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

    what is theme name that you use in vs code. Also you terminal setting. how to configure this beautiful terminal.

  • @user-hk3te3ql5p
    @user-hk3te3ql5p Год назад +1

    شكرا لكم

  • @devisopen
    @devisopen 6 месяцев назад +1

    Thank you Dary

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

      Thank you for watcing :)

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

      You are one of the best. Carry on with the good works

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

    Thanks so much
    please make video to build simple project from scratch with components and parent class component
    seriously,thanks for your work
    how to handle the css files

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

      Thank you so much. From now on, Components will be included in all of my videos :)

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

    perfect video for learning blade component in laravel 🤌

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

      Happy that I could've helped :)

  • @vikasrao5034
    @vikasrao5034 23 дня назад

    Please share link of your Spatie Permission tutorial. Thanks

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

    Thanks

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

    Hi Dary i have clone the template repo but i haven't found any starter kit for this tutorial i just found the final repo in which we can find the final code i have checked the both repos can you please provider the starter kit without the components work?

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

    thank you alot for this
    Is there a course you made for this site?

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

      You are welcome. There is no course available, just designed the page so I could use it in my tutorials instead of creating a new design every single time!

  • @AxelSebastian-vk2vx
    @AxelSebastian-vk2vx Год назад +1

    Thank You so much, it was really helpful.

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

    Thankyou

  • @asim-gandu-phenchod
    @asim-gandu-phenchod Год назад

    Wow.... Cool intro

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

    Nice, I think this is one of the main features of Laravel, for the view instead of creating manually since 9 you can pass -view and it will only create the view. I like the props function to create default variables.

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

      Definitely true! Incredible feature which makes your application look a lot cleaner.

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

    awesome

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

    Great sir

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

    Odd I dont get the error at minute 8:10, for some reason all my views works even if i delete the controllers. I realized that you need to call to use the controller else if you call you call the view.

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

      Interesting, thank you for sharing buddy!

  • @Jenish-ep8co
    @Jenish-ep8co Год назад

    how can we update the data while using the component? ?

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

      Behind the scenes, components will transformed to the code, so it prett you’ve works in the same way.

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

    Components in laravel make it comfortable for making UI as React js

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

    Same like props

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

    kind of vue js :D

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

      and React, Angular, Svelte, Ember and pretty much any other JS framework...

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

    Hello dary please reupload the file in github without the changes your making in this tutorial, so we can do it on our own.