/**
* Log an activity in the system.
*
- * @param string|Loggable
+ * @param $detail string|Loggable
*/
protected function logActivity(string $type, $detail = ''): void
{
/**
* Get the validation rules for image files.
*/
- protected function getImageValidationRules(): string
+ protected function getImageValidationRules(): array
{
- return 'image_extension|mimes:jpeg,png,gif,webp';
+ return ['image_extension', 'mimes:jpeg,png,gif,webp'];
}
}