Closed faselunare closed 2 years ago
Describe the bug Upload and attach images and files doesn't works (error 500) if the plugin is installed in WinterCMS 1.2
To Reproduce Steps to reproduce the behavior:
Screenshots
Solution In file plugins/reazzon/editor/classes/plugins/attaches/resource/AttachResource.php change
this use Illuminate\Http\Resources\Json\Resource; to use Illuminate\Http\Resources\Json\JsonResource;
and this class AttachResource extends Resource to this class AttachResource extends JsonResource
and
In file plugins/reazzon/editor/classes/plugins/image/resource/ImageResource.php change
and this class ImageResource extends Resource to this class ImageResource extends JsonResource
Thanks for notice! Fixed in dc48fdc
Describe the bug Upload and attach images and files doesn't works (error 500) if the plugin is installed in WinterCMS 1.2
To Reproduce Steps to reproduce the behavior:
Screenshots
Solution In file plugins/reazzon/editor/classes/plugins/attaches/resource/AttachResource.php change
this use Illuminate\Http\Resources\Json\Resource; to use Illuminate\Http\Resources\Json\JsonResource;
and this class AttachResource extends Resource to this class AttachResource extends JsonResource
and
In file plugins/reazzon/editor/classes/plugins/image/resource/ImageResource.php change
this use Illuminate\Http\Resources\Json\Resource; to use Illuminate\Http\Resources\Json\JsonResource;
and this class ImageResource extends Resource to this class ImageResource extends JsonResource