}
if ($searchTerm) {
- $query->where(function(Builder $query) use ($searchTerm) {
+ $query->where(function (Builder $query) use ($searchTerm) {
$query->where('name', 'like', '%' . $searchTerm . '%')
->orWhere('value', 'like', '%' . $searchTerm . '%');
});
{
/**
* Connect to an LDAP server.
+ *
* @return resource
*/
public function connect(string $hostName, int $port)
* Class Chapter.
*
* @property Collection<Page> $pages
- * @property string $description
+ * @property string $description
*/
class Chapter extends BookChild
{
* @property string $html
* @property int $revision_number
* @property Page $page
- *
* @property-read ?User $createdBy
*/
class PageRevision extends Model
/**
* Check if a slug is already in-use for this
* type of model within the same parent.
+ *
* @param Sluggable&Model $model
*/
protected function slugInUse(string $slug, Sluggable $model): bool
->paginate(50)
->appends(array_filter([
'search' => $search,
- 'name' => $nameFilter
+ 'name' => $nameFilter,
]));
return view('tags.index', [
- 'tags' => $tags,
- 'search' => $search,
+ 'tags' => $tags,
+ 'search' => $search,
'nameFilter' => $nameFilter,
]);
}
/**
* Provides public access to get the raw attribute value from the model.
* Used in areas where no mutations are required but performance is critical.
+ *
* @return mixed
*/
public function getRawAttribute(string $key)