Official documentation: https://laravel.com/docs/8.x/blade#components
Questions tagged [laravel-components]
34 questions
0
votes
1 answer
Laravel Cant return collection/array to component from component class
Heres the output to the screen if I dd() in the render method
Illuminate\Support\Collection {#1355 ▼
#items: array:1 [▼
0 => {#1360 ▼
+"provider": "provider"
+"name": "name"
+"id": 2
+"price": 35.0
}
]
}
This is…

Quickee
- 321
- 1
- 6
- 13
0
votes
1 answer
@include Laravel Blade Template to append using Javascript
I'm trying to reuse the same HTML code in both PHP and Javascript. In PHP I'm using Laravel's component mechanism to load the file passing the necessary parameters.
@foreach($files as $file)

Mayeenul Islam
- 4,532
- 5
- 49
- 102
0
votes
1 answer
0
votes
1 answer
Logic in Laravel components
I have a laravel component
{{ $slot…
{{ $heading }}
{{ $subheading }}
{{ $copy }}

LeBlaireau
- 17,133
- 33
- 112
- 192