Fix bad call to method.

This commit is contained in:
James Cole
2022-05-02 19:35:35 +02:00
parent cf89d93cec
commit 2b615cf757
49 changed files with 157 additions and 157 deletions

View File

@@ -45,10 +45,10 @@ class StoreRequest extends FormRequest
public function getAll(): array
{
return [
'filename' => $this->string('filename'),
'title' => $this->string('title'),
'filename' => $this->convertString('filename'),
'title' => $this->convertString('title'),
'notes' => $this->stringWithNewlines('notes'),
'attachable_type' => $this->string('attachable_type'),
'attachable_type' => $this->convertString('attachable_type'),
'attachable_id' => $this->integer('attachable_id'),
];
}
@@ -68,7 +68,7 @@ class StoreRequest extends FormRequest
}, $models
);
$models = implode(',', $models);
$model = $this->string('attachable_type');
$model = $this->convertString('attachable_type');
return [
'filename' => 'required|between:1,255',