->groupBy('category.name')
@foreach ($groups as $groupName => $filters)
<optgroup label="{{ $groupName }}">
@foreach ($filters as $filter)
<option>{{ $filter->name }}</option>
@endforeach
</optgroup>
@endforeach
with(['products' => function ($query) use ($sortDirection, $tags) {
$query->whereHas('authors' ,function ($q) use ($tags) {
$query->whereIn('user_id', $tags);
})->orderBy('id', $sortDirection);
}])
'secret' => $this->when($request->user()->isAdmin(), function () {
return 'secret-value';
}),
.quadmenu-item {
background-color: #000;
-webkit-transition: background-color 0ms linear;
transition: background-color 0ms linear;
-webkit-transition-delay: 5s;
transition-delay: 5s;
}
.quadmenu-item:hover {
background-color: #f00;
-webkit-transition-delay: 0s;
transition-delay: 0s;
}