step == 0){ $this->step = 1; $this->step_fa = 'گام اول (شناسایی)'; $this->save(); } } public function goToSecondStep() { if($this->step == 1){ $this->step = 2; $this->step_fa = 'گام دوم (مستندات قضایی)'; $this->save(); } } public function goToThirdStep() { if($this->step == 2){ $this->step = 3; $this->step_fa = 'گام سوم (برخورد)'; $this->save(); } } protected function recognizePicture(): Attribute { return Attribute::make( get: fn($value) => $value == null ? null : (filter_var($value, FILTER_VALIDATE_URL) ? $value : Storage::disk('public')->url($value)) ); } protected function actionPicture(): Attribute { return Attribute::make( get: fn($value) => $value == null ? null : Storage::disk('public')->url($value) ); } protected function recognizePictureSecond(): 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) ); } }