Merge branch 'feature/CreatePictureHarim' into 'develop'

write miotator for picture

See merge request witelgroup/rms_v2!155
This commit is contained in:
2025-08-13 10:23:18 +00:00

View File

@@ -95,10 +95,28 @@ class SafetyAndPrivacy extends Model
protected function actionPicture(): Attribute protected function actionPicture(): Attribute
{ {
return Attribute::make( return Attribute::make(
get: fn($value) => $value == null ? null : get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
(filter_var($value, FILTER_VALIDATE_URL) );
? $value }
: Storage::disk('public')->url($value))
protected function recognizePicture2(): Attribute
{
return Attribute::make(
get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
);
}
protected function evidencePicture(): Attribute
{
return Attribute::make(
get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
);
}
protected function finishPicture(): Attribute
{
return Attribute::make(
get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
); );
} }
} }