If I go to /counter the livewire component works, but If I go to the / route still getting the Undefined variable $slot I don't know if I'm doing anything wrong with Livewire or Laravel configuration since this is basic and never had any persisting problem like this with...
And, here's where I passed the $title variable to the $title $slot: <x-slot:title>{{ $title }}</x-slot>{{ $count }}+- Hope that helps! 0 Reply
user()) @if(auth()->user()->can('user list')) id="adminContent" @endif @else id="homepageContent" @endif > {{ $slot }} @livewireScripts The error code in laravel log:Copy production.ERROR: Undefined variable $header {"view":{"view":"/xxxxxx/resources/views/layouts/app.blade...
Laravel Level 1 niyazvppOP Posted 3 years ago Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP). This error occurs when I pass a variable with routeName to laravel component. Component File: ...