@Sinnbeck but I have to store the page body content in the db with its translation data key. so whenever I render the body. All the content should execute. What is the best way to do it. Can you please guide?
@dev19 But can you explain why you are using the database to store things that you should store in blade file? I hope you aren't letting users create them (big security risk) :)
@dev19 Ok. Just making sure you know the risk. The admin has access to anything on the server that the php user has. And you take daily backup in case someone deletes all users by accident or similar (remember they can do anything they like on the server)
@Sinnbeck Yes in real admin is a devOps person so and also Product Manager he will use the Admin Panel. Thanks for your reply. I really appreciate your help.
Thanks @sinnbeck .
Like I have the /pages/{page:slug} when I use db. so what I will do if I use filesystem for routing and for the file content.
Whenever the admin generate a page. I will generate file?
@dev19 That just moves the problem to a file, and it would mess with git. I thought it was static coded files by you. So the database is probably fine here, if you understand the security risks :)