I was looking through the implementation of Laravel Breeze to see how they built the front end. I understand everything in the blade file except for a few things which have syntax I don't understand.
Within navigation.blade.php you can find the following:
<button @click="open = !open" class...>
<div :class="{'block':open, 'hidden': ! open}"
As for the first one, I'm not sure if @click is a blade directive. It doesn't seem like it is, but I don't understand the purpose of the @ sign and I can't figure out what open = ! open
means either. Is open a variable? It kind of resembles a "not equal" operator but I don't think it's that either.
As for the second one, I can't figure out how it works. Are these keys/values? Are they being passed through to some other component? I know the colon notation can be used to pass in non-hardcoded data, but I'm not sure what is happening after the equal sign.