Passing Data To Components | Laravel Blade Components

preview_player
Показать описание
In this video, we will learn how to pass data to blade components.

Support me:

Links:

Timestamps:
0:00 Introduction
0:42 Pass data to a class-based component
1:47 Accept data in the class-based component
3:00 Display data in view
4:21 Create public methods in class-based component
5:50 Pass data to an anonymous component
7:07 Pass additional hardcoded information

#LaravelBladeComponents
#PassDataToComponents
Рекомендации по теме
Комментарии
Автор

Your example is the simplest way. I finally understand.

After 2 hours of reading about passing data to components and sifting through examples in 7, 8 and 9, you make it simple: pass options in one var. Thank you.

Adam-yfss
Автор

hello form Brazil, i'm searching for this tutorial for some hours, thanks very much, u teach soo good, congratulations

gabrielvaz
Автор

thank you for giving this knowledge for free, it helps me a lot because I don't know clearly about this x-component.

allgameplay
Автор

Thank you very much. Your teaching method ist awesome. Slowly, ordered step by step and easy to understand!
One think i didn't get, was the "::class={danger: isDeleting}" thing. Maybe a visual example would bei fine :)

alexglockhammer
Автор

I must add something so that anyone else don't run into same problem as me. I don't know what version of Tailwind CSS is this, but in the v3 (newest) you can't pass bg-{{$color}}-200. Yes it will show in dev tools as bg-red-200 but DOM won't see it. In this case you just need to see "Dynamic classes" in Tailwind documentation and define it as it is stated in documentation. Hope it helps someone and save him/her some time.

VladimirMarkovic
Автор

Is there any chance you can give us an example with categories, parent categories, recursive child categories made with blade components we would appreciate it very much

Periklis Kiorpes

pkiorpes
Автор

I dont no why but im getting the Error: Use of undefined constant post - assumed 'post' (this will throw an Error in a future version of PHP). I did the same things

albi
Автор

What extension are you using for php code completion?

JoeConlin