bernhard 5,121 Posted February 14 I've done that too complicated too many times ๐ย $wire->addHookAfter("Pages::saveReady('template=foo,id=0'), function($event) { $event->arguments(0)->status = 1; }); Now create a new "foo" page and it will automatically be published (and also the "temp" status will be removed)ย ๐ย I need that all the time for backend applications... ย 6 Share this post Link to post Share on other sites
horst 5,427 Posted February 14 Hi @bernhard, thats a nice and short one!ย ๐ 1 Share this post Link to post Share on other sites