InfinityXTech / filament-unlayer

Filament form field as wrapper for unlayer editor
MIT License
17 stars 3 forks source link

[Bug]: Can't get the content data #2

Closed gmanikandan-dev closed 1 month ago

gmanikandan-dev commented 2 months ago

What happened?

I just used the below code in the form.The validation error shows after I updated the content. Could you help me to fix this?

Unlayer::make('content')->required()

issue-content

Thank you!

How to reproduce the bug

I've followed installation and usage of your Readme file.

Package Version

3.0.62

PHP Version

8.2.23

Laravel Version

10.48.20

Which operating systems does with happen with?

Linux

Notes

No response

InfinityXTech commented 1 month ago

Can you give me a repo with full code example? Because I just tried on latest filament fresh app and it is working.

gmanikandan-dev commented 1 month ago

https://github.com/gmanikandan-dev/filament-unlayer

Model => app/Models/Template.php Filamentphp => app/Filament/Resources/TemplateResource.php

You may use the master branch of this repo. I'm just using TemplateResource.php file. It has title,description and content.

Thank you!

InfinityXTech commented 1 month ago

Sorry, I was on a small vacation, it will be fixed in a next release in a day.

gmanikandan-dev commented 1 month ago

I'm waiting for your next release :)

InfinityXTech commented 1 month ago

It is fixed, you can update it with composer update. Thanks for sharing the bug!

gmanikandan-dev commented 1 month ago

Yes, Now It's work fine. Thank you for fixing this issue @InfinityXTech .