Blade templates & Layouts | Laravel 10 Tutorial #7

Поделиться
HTML-код
  • Опубликовано: 14 июл 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

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

  • @SohaibHasan
    @SohaibHasan 2 месяца назад +3

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

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

      Thanks for watching. Great to hear that!

  • @overseer6943
    @overseer6943 Месяц назад +1

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

  • @romer-dev
    @romer-dev 6 месяцев назад +2

    I dont skip ads for thanking you man

  • @Malta_maltas
    @Malta_maltas 5 месяцев назад +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.

  • @dejandjosic1258
    @dejandjosic1258 6 месяцев назад +2

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

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

      Thanks, will do!

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

    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 2 месяца назад +1

      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.

  • @skia515
    @skia515 Год назад +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  Год назад +1

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

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

    Thank You sooooo much 🥰

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

      You’re welcome. Thank you for watching.

  • @fa6805
    @fa6805 2 месяца назад +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.

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

    Really helpful content❤❤

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

      Glad to hear that.

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

    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 ?

  • @user-kj3br5hu5d
    @user-kj3br5hu5d Месяц назад +1

    Thanks a lot sir

    • @yelocode
      @yelocode  27 дней назад

      Thanks for watching.

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

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

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

    Hey, what Vscode theme are you using?

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

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

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

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

  • @aliabednar8035
    @aliabednar8035 10 месяцев назад +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  10 месяцев назад +4

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

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

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

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

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

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

      Thanks

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

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

  • @user-yj2vg7tl3u
    @user-yj2vg7tl3u 7 месяцев назад +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!

  • @user-kh6rp6yx1j
    @user-kh6rp6yx1j 3 месяца назад +1

    hey

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

      Hi, Thanks for watching.