Blade templates & Layouts | Laravel 10 Tutorial #7

Sdílet
Vložit
  • čas přidán 14. 07. 2023
  • Laravel 10 Blade tutorial
    On this episode we cover the basics of laravel blade, learn how to build reusable layouts and improve our code quality.
    HTML template used :
    github.com/yelocode/bootstrap...
    Playlist of Laravel 10 Tutorial Course :
    • Laravel 10 Beginners C...
    If you're new to Laravel 10 and want to learn about the Blade templating engine, then this is the video for you! In this video, we'll be covering all the basics of the Blade templating engine in Laravel 10. By the end of the video, you'll have a good understanding of how blade works and will be ready to start creating your own templates in Laravel 10!
    What is Laravel :
    Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
    en.wikipedia.org/wiki/Laravel
    If you have any questions or problems please leave a comment.
    Laravel Blade
    Laravel crash course

Komentáře • 32

  • @romer-dev
    @romer-dev Před 6 měsíci +2

    I dont skip ads for thanking you man

  • @dejandjosic1258
    @dejandjosic1258 Před 6 měsíci +2

    Great explaining! Love your series man. Keep going with the good work

  • @SohaibHasan
    @SohaibHasan Před měsícem +1

    Great video. Exactly something I've been looking for today.

    • @yelocode
      @yelocode  Před měsícem +1

      Thanks for watching. Great to hear that!

  • @ayses_tnbl
    @ayses_tnbl Před 5 měsíci +3

    Sir if we want to lorem ipsum use inside html just write lorem*50 or lorem*100 then enter.By the way thank you very much for your Laravel's videos.

  • @overseer6943
    @overseer6943 Před 27 dny

    this video gave me the same feeling as thomas edison creating the light bulb.

  • @user-kj3br5hu5d
    @user-kj3br5hu5d Před 23 dny +1

    Thanks a lot sir

  • @CristianKirk
    @CristianKirk Před 6 měsíci

    Coming from Symfony, just learning Laravel. I have to say that I like way more how Symfony solves this type of thing using blocks. I hope I can get used to this. Thanks for the tutorials.

    • @fa6805
      @fa6805 Před měsícem

      Back in 2016, I used to like Symfony's Twig, but after using Laravel's Blade, I appreciate Blade more.
      For example:
      In Twig:
      {{ user.full_name|upper }}
      In Blade:
      {{ strtoupper($user->full_name) }}
      While Twig looks simpler, Blade stays truer to native PHP syntax by not introducing dot notation or pipes. When I needed to use a PHP function that wasn’t available in Twig, I had to extend Twig, which was very inconvenient. I’m not sure how it is these days since I haven’t touched Symfony for a long time, but I prefer Blade. It's better in many ways than Twig.

  • @thamoddyarashmitha4352
    @thamoddyarashmitha4352 Před rokem +1

    Thank You sooooo much 🥰

    • @yelocode
      @yelocode  Před rokem

      You’re welcome. Thank you for watching.

  • @skia515
    @skia515 Před 11 měsíci +3

    Thank.
    For using layout I doing this in controller:
    return view('template/header').view('content').view('template/footer');
    I learn it from Codeigniter :D

    • @yelocode
      @yelocode  Před 11 měsíci +1

      Nice tip. Didn't know you could chain call the view helper.

  • @KonnarakYahath
    @KonnarakYahath Před 2 měsíci +1

    Really helpful content❤❤

  • @fa6805
    @fa6805 Před měsícem +1

    Emmet can generate lorem ipsum.
    lorem, lorem10 (10 words), lorem*5 (5 paragraphs). It should work in vscode and phpstorm or any editor where Emmet works.

  • @norbertperka9231
    @norbertperka9231 Před 5 měsíci

    That's nice explanation but I have different question I for my project 2 pages ' gallery ' and ' contact' when changing pages its blinking , something like reloading css, I'm using Laravel with mix, what might coz it. I can't find any good explanation. Any guid ?

  • @dovis8139
    @dovis8139 Před 10 měsíci +1

    Hey, what Vscode theme are you using?

    • @yelocode
      @yelocode  Před 10 měsíci +2

      I'm using Monokai Pro theme, filter octagon version color variation.

  • @acegear
    @acegear Před 2 měsíci

    is its better to use x-layout slot? vs yeild view , xlayout click to me better

  • @aliabednar8035
    @aliabednar8035 Před 10 měsíci +1

    when i add space on the app name of .env file, It breaks the site. How do we fix this? I want to add space between app name

    • @yelocode
      @yelocode  Před 10 měsíci +3

      If you have space, you can wrap your site name in "" marks. It should solve the issue something like this:
      APP_NAME="Yelo News"

  • @user-yj2vg7tl3u
    @user-yj2vg7tl3u Před 7 měsíci +1

    My dude need your help with your help. I need to create a website for my thesis and the problem is that i cant connect fucking php and css to create even the Navigator bar!

  • @mymy_oneseven
    @mymy_oneseven Před 8 měsíci +1

    hello why is it that your blade files icon are different?it's laravel icon. is it an extension? which one?

    • @yelocode
      @yelocode  Před 8 měsíci +1

      It's added by the vs code theme I'm using, it's called monokai pro.

    • @mymy_oneseven
      @mymy_oneseven Před 8 měsíci

      Thanks

    • @mymy_oneseven
      @mymy_oneseven Před 8 měsíci

      Btw do you have a tutorial on how to set up bootstrap locally on laravel?

  • @CastroUbuntu
    @CastroUbuntu Před 3 měsíci +1

    Hi guys,
    In case if config name doesn't change (like in my case), please clear config cache:
    php artisan config:clear

  • @user-kh6rp6yx1j
    @user-kh6rp6yx1j Před 2 měsíci +1

    hey

    • @yelocode
      @yelocode  Před 2 měsíci

      Hi, Thanks for watching.