Laravel 6 Beginner - e6 - Blade Templates

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • Blade is the simple, yet powerful templating engine provided with Laravel. In this episode, we will create a real-world html page example with navigation and even pass some data from our controller.
    For the best experience, follow along in our interactive school at www.coderstape...
    DigitalOcean Referral
    m.do.co/c/7dce...
    About This Course
    If you have been looking to learn Laravel, there hasn't been a better time. The framework reached an important point in its life, with the release of Laravel 6. There has never been more demand for Laravel developers than now. In this series, we are going to get you started in your path to becoming a Laravel Artisan. Let's get right to it!

ความคิดเห็น • 68

  • @konstruktion
    @konstruktion 5 ปีที่แล้ว +17

    I love this voice. :D its so....relaxed!

  • @SergioArroyoSailing
    @SergioArroyoSailing 4 ปีที่แล้ว +5

    Great work! Super clear , well paced and well-stated instructions! also kudos on the excellent editing! subtle sometimes, but they really smoothed things along :) Keep up the great work!

  • @timothykimari8154
    @timothykimari8154 4 ปีที่แล้ว +2

    The best tuts i have ever come across

  • @Pedr0Diniz
    @Pedr0Diniz 4 ปีที่แล้ว +5

    This was an amazing class, thank you so much!

  • @zyhon881
    @zyhon881 4 ปีที่แล้ว

    I love the way you teach. Very simple to understand.

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 5 ปีที่แล้ว +2

    Neat and concise for beginners ! You could speak about $loop too.

  • @sartajsingh8459
    @sartajsingh8459 4 ปีที่แล้ว +1

    How cool is that!!!! thanks for explaining everything in a simple way

  • @jimoholuwasegun9392
    @jimoholuwasegun9392 2 ปีที่แล้ว

    I just had to subscribe, you are a great teacher!

  • @RajibAhmad
    @RajibAhmad 4 ปีที่แล้ว

    Man U r great... want a lot more from U..

  • @milad5554
    @milad5554 4 ปีที่แล้ว

    Comprehensive and easy , you are life saver 🙏

  • @semantic7790
    @semantic7790 3 ปีที่แล้ว

    Wow! Thank you for the lessons!

  • @elkhanhamet2561
    @elkhanhamet2561 3 ปีที่แล้ว

    thank you Victor!!!

  • @tibfox
    @tibfox ปีที่แล้ว

    Wow thank you for this!

  • @IbrahimMohammad2023
    @IbrahimMohammad2023 4 ปีที่แล้ว

    I can not stop myself from watching , this is amazing 😍

  • @TriinTamburiin
    @TriinTamburiin 4 ปีที่แล้ว

    Love your tutorials!

  • @lemurza5236
    @lemurza5236 5 ปีที่แล้ว +1

    Love your channel man.

  • @Troy-ol5fk
    @Troy-ol5fk 4 ปีที่แล้ว

    This really helps me a lot

  • @donxnik
    @donxnik 4 ปีที่แล้ว

    wow I didn't know about @empty stuff thanks man you are cool

  • @freyarusso154
    @freyarusso154 4 ปีที่แล้ว

    Thank you very much! This was very useful for me!

  • @westfield90
    @westfield90 4 ปีที่แล้ว

    Thank you

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 4 ปีที่แล้ว

    Best than Laracast!

  • @itsme5859
    @itsme5859 4 ปีที่แล้ว +1

    Wonderful lessons, thank you!
    Can you say what theme you use in phpstorm?

  • @Penitent85
    @Penitent85 7 หลายเดือนก่อน

    The best

  • @bakhadirtureev1215
    @bakhadirtureev1215 2 ปีที่แล้ว

    Hundred likes from me!!!

  • @spidernerds
    @spidernerds 3 ปีที่แล้ว

    love this great stuff

  • @yangkevin8888
    @yangkevin8888 4 ปีที่แล้ว +1

    I am new to php at 2:47 how did you pull a bunch of code out

  • @mateuszm980
    @mateuszm980 4 ปีที่แล้ว +1

    What plugin/shortcut do you use for syntax like "ul>10*li" in PS (7:25)?

    • @nhemgomia1010
      @nhemgomia1010 4 ปีที่แล้ว +1

      It's called Emmet

    • @mateuszm980
      @mateuszm980 4 ปีที่แล้ว

      @@nhemgomia1010 Thank you

    • @nhemgomia1010
      @nhemgomia1010 4 ปีที่แล้ว +1

      @@mateuszm980 Happy to help. :)

  • @douglasmandela4029
    @douglasmandela4029 4 ปีที่แล้ว +1

    Thanks for this. 12:21 when you pass the services array using compact method don't work on me, i had to pass them as an array>>>return view('services', ['services' =>$services]);

  • @adsheff
    @adsheff 3 ปีที่แล้ว +1

    I don't get it. PHP IS a templating engine. Why does Laravel recreate things that already exist with slightly different syntax? Just seems to be needless extra overhead. For example, or @foreach ($services as $service)
    Why have they created an alias for an already brief statement?

  • @kamranahmed7046
    @kamranahmed7046 3 ปีที่แล้ว

    Only dumbs are gonna dislike this tutorial... This is amazing tutorial

  • @jaylugia5905
    @jaylugia5905 4 ปีที่แล้ว +1

    It won't let me open services

  • @lakshmiprasanna3506
    @lakshmiprasanna3506 4 ปีที่แล้ว +2

    $services=[
    'service1',
    'service2',
    ];
    return view('services')->data(compact(myvar('services'));
    }
    getting error

  • @latlov
    @latlov 5 ปีที่แล้ว

    10:35 navbar in another file and the use @include. 14:00 @foreach ---> @forelse @empty

  • @omarbailal5751
    @omarbailal5751 4 ปีที่แล้ว

    thank you man

  • @alimoalim100
    @alimoalim100 4 ปีที่แล้ว

    says:
    Attribute [view] does not exist.
    Route::view('/about', 'about');
    I wanna shortcut view inside Controller, only view without performs any action

  • @AlJapairai
    @AlJapairai 2 ปีที่แล้ว

    In the HelloController.php I kept trying with:
    return view(view: 'services', data: compact(varname: 'services'));
    but it didn't worked for me, then I tried this:
    return view(view: 'services', data: compact('services'));
    and it worked fine, maybe it is different PHP version.

  • @terryrocker8681
    @terryrocker8681 3 ปีที่แล้ว

    how do you add a title to the template (app.blade.php)?
    it provides the template but how can we add a title for it's self?
    @yield('title')

  • @adam192021
    @adam192021 5 ปีที่แล้ว

    The BEST as always!

  • @Yash42189
    @Yash42189 4 ปีที่แล้ว

    did the snares have to be so loud?

  • @igortimbalenco434
    @igortimbalenco434 4 ปีที่แล้ว

    Great video! Thank you for the lessons! Unfortunately when doing exactly the same stuff getting "Invalid argument supplied for foreach()"... Already made some googling but with no success.. Could please someone advise what might be wrong?

    • @giancarlonajito4577
      @giancarlonajito4577 4 ปีที่แล้ว

      same error how do you fixed it?

    • @1moskri2
      @1moskri2 4 ปีที่แล้ว

      it says that your services variable is not an array

  • @lakshmiprasanna3506
    @lakshmiprasanna3506 4 ปีที่แล้ว +1

    why don't you do in vs code.

  • @dgloria
    @dgloria 4 ปีที่แล้ว

    Hi, video is very blurry on 720, it's hurting my eyes. Please increase quality or font size. Thank you.

  • @BrentDominic
    @BrentDominic 4 ปีที่แล้ว

    How to do the shortcut at 2:29?

  • @arsalanhussain6499
    @arsalanhussain6499 5 ปีที่แล้ว

    your videos are great and helpfull . i want to ask something
    When i pass view as a string it does not work
    here is my helloController index function
    public function index(){
    return view(view:'app');
    }
    i am using vscode and it gives me syntax error and on browser it does not work to

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +4

      You copied some extra code that is just an IDE type hint. Change it to this
      public function index(){
      return view('app');
      }
      The :view part is just a typehint

    • @arsalanhussain6499
      @arsalanhussain6499 5 ปีที่แล้ว

      @@CodersTape So you are saying that when you return a view in your IDE it is just a hint?

    • @arsalanhussain6499
      @arsalanhussain6499 5 ปีที่แล้ว

      @@CodersTape Thank you very much i was so confused with that .

    • @kennethkipchumba2532
      @kennethkipchumba2532 4 ปีที่แล้ว

      @@CodersTape I had fallen into that trap too.

    • @luqamran3467
      @luqamran3467 4 ปีที่แล้ว

      @@CodersTape thank you so much i'm also confused with that type hint

  • @naxionman
    @naxionman 2 ปีที่แล้ว

    For laravel 8 change:
    Route::get('/hello', 'HelloController@index');
    to:
    Route::get('/hello', [HelloController::class, 'index']);

    • @AlJapairai
      @AlJapairai 2 ปีที่แล้ว

      That didn't work for me, I used:
      Route::get('/hello', 'App\Http\Controllers\HelloController@index');

    • @naxionman
      @naxionman 2 ปีที่แล้ว

      @@AlJapairai Alternatively you can have the line : "use App\Http\Controllers\HelloController; " on top of the web.php. This is useful when this particular controller is used more than once in the file.

    • @AlJapairai
      @AlJapairai 2 ปีที่แล้ว

      @@naxionman Thank you, that was very helpful, and your comments in the other videos.

  • @FerdzGaming
    @FerdzGaming 4 ปีที่แล้ว

    1:46 exact same code but got syntax error. Help!

    • @AlphyGacheru
      @AlphyGacheru 4 ปีที่แล้ว

      Share the error output you get!

  • @jjcodexcode2877
    @jjcodexcode2877 4 ปีที่แล้ว

    Parece a voz do Goku na dublagem brasileira. Não sei como é a voz dele em outras linguas.

  • @kuttalu
    @kuttalu 3 ปีที่แล้ว

    404 : page not found

  • @niazmakhdum3562
    @niazmakhdum3562 4 ปีที่แล้ว

    the problem is that you teach and show things too fast therefore its difficult to get it for beginners