How to regenerate content_html field #62
-
Tell me please. I have done a database dump for the I can go to edit a post in the admin panel and save the post, which will lead to HTML regeneration. But I have 175 posts. I would like to receive a command for batch execution. |
Beta Was this translation helpful? Give feedback.
Answered by
LukeTowers
Feb 20, 2024
Replies: 1 comment
-
@comerc this would be something that Tinker would work well for: \Winter\Blog\Models\Post::all()->each(function ($post) { $post->save(); }); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LukeTowers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@comerc this would be something that Tinker would work well for: