Blade templates & Layouts | Laravel 10 Tutorial #7

Поділитися
Вставка
  • Опубліковано 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

  • @dejandjosic1258
    @dejandjosic1258 6 місяців тому +2

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

    • @yelocode
      @yelocode  6 місяців тому

      Thanks, will do!

  • @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.

  • @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.

  • @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.

  • @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.

  • @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 ?

  • @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

  • @user-kj3br5hu5d
    @user-kj3br5hu5d Місяць тому +1

    Thanks a lot sir

    • @yelocode
      @yelocode  27 днів тому

      Thanks for watching.

  • @acegear
    @acegear 3 місяці тому

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

  • @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.

  • @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"

  • @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!

  • @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-kh6rp6yx1j
    @user-kh6rp6yx1j 3 місяці тому +1

    hey

    • @yelocode
      @yelocode  3 місяці тому

      Hi, Thanks for watching.