Let’s delete all. Not really… but we need to create the delete() method. This method will receive the language slug and the page id. Further more, if the language slug will have “all” as value (I sure hope you won’t choose “all” as language slug in the future…), this will delete the whole page with it’s translations. And let’s not forget about the slugs. We delete them too.

I guess that if you got here then no more explanation is necessary about what I am going to do. But if you have questions, you can at any time approach me with a comment on my posts.

Hi, I’m a bit confused right now – everything works fine, I can create, edit and delete static pages with this CMS tool – but how can I access the static page as a normal user (as a user who did not login and who would just like to see the content of the page? What is the URL to the created static page?)

Hello. Sorry for the time passed. I was in vacation. If you’ve followed the tutorial from start to end, you should simply access the page by writing the slug you’ve set up for the page at the end of your domain name. For example if you’ve saved a page with the slug “a-new-page”, you should see it by writing “http://localhost/a-new-page”