Questions tagged [laravel-components]

Official documentation: https://laravel.com/docs/8.x/blade#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

Logic in Laravel components

I have a laravel component

{{ $heading }}

{{ $subheading }}

{{ $copy }}

{{ $slot…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
1 2
3