Blade检查
<nav>
<a href="/">Home</a>
@can('edit-contact', $contact)
<a href="{{ route('contacts.edit', [$contact->id]) }}">Edit This Contact</a>
@endcan
</nav><h1>{{ $contact->name }}</h1>
@cannot('edit-contact', $contact)
LOCKED
@endcannotLast updated