How do I avoid having to use isset() in Laravel Blade templates?
I’ve got a Blade file like this: <a href="{{ $url }}" class="{{ $wrapperClass }}"> <p class="{{ $paraClass }}">{{ $title }}</p> </a> And call it like this: <x-mycomponent url="{{ $book->url }}" title={{ $book->title }} wrapper-class="" para-class = "" /> Works great, but whenever I want to add a variable to the component, I need to add… Read More How do I avoid having to use isset() in Laravel Blade templates?