We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blade X component implemented in #31363
So based on that i have tried to pass the json which is from controller but instaed of passing a json into component its passing a compiled string
Create a Component
resources\views\components\avatar.blade.php
{{$foo}} Component Call
{{$foo}}
@php $array = ['foo','bar']; $json = json_encode($array) @endphp <x-avatar foo={{$json}} ></x-avatar>
Expected: Json needs to printed out
Actual : <?php echo e($json); ?>
<?php echo e($json); ?>
Screenshot of dumped:
The text was updated successfully, but these errors were encountered:
Try:
<x-avatar :foo="$json"></x-avatar>
Sorry, something went wrong.
https://laravel.com/docs/master/blade#passing-data-to-components
No branches or pull requests
Description:
Blade X component implemented in #31363
So based on that i have tried to pass the json which is from controller but instaed of passing a json into component its passing a compiled string
Steps To Reproduce:
Create a Component
resources\views\components\avatar.blade.php
{{$foo}}
Component Call
Expected: Json needs to printed out
Actual :
<?php echo e($json); ?>
Screenshot of dumped:
The text was updated successfully, but these errors were encountered: