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

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

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

    I dont skip ads for thanking you man

  • @fa6805
    @fa6805 7 дней назад +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.

  • @SohaibHasan
    @SohaibHasan 14 дней назад +1

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

    • @yelocode
      @yelocode  8 дней назад +1

      Thanks for watching. Great to hear that!

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

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

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

      Thanks, will do!

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

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

    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 7 дней назад

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

    Thank You sooooo much 🥰

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

      You’re welcome. Thank you for watching.

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

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

  • @KonnarakYahath
    @KonnarakYahath 24 дня назад +1

    Really helpful content❤❤

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

      Glad to hear that.

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

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

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

    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 ?

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

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

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

    Hey, what Vscode theme are you using?

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

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

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

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

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

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

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

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

      Thanks

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

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

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

    hey

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

      Hi, Thanks for watching.