->withSubtitles() added

This commit is contained in:
Benjamin Takats
2022-12-17 17:28:46 +01:00
parent ae7426cb1a
commit a932ecc3f0
17 changed files with 234 additions and 173 deletions

View File

@@ -50,6 +50,11 @@ class BookCase extends Resource
->toString()));
}
public function subtitle()
{
return __('Erstellt von: :name', ['name' => $this->createdBy->name]);
}
/**
* Get the fields displayed by the resource.
*
@@ -130,7 +135,7 @@ class BookCase extends Resource
return $request->user()
->hasRole('super-admin');
})
->searchable(),
->searchable()->withSubtitles(),
];
}