I am passing
<x-slot name="customLayout"> custom content goes here </x-slot>
So In Laravel blade I can print it using:
{{ $customLayout }}
BUT, in component blade I have another variable which has the same variable name of $customLayout and it's a String.
I don't want to change variable name, because I get it through associative array keys and I want it to be the same as slot name so I can know where custom slot is going to be printed.
When I do {{ $customLayout }} in component I get String printed and not the passed template from <x-slot name="customLayout">.
Is there a way to print slots passed content instead of local variable?