Php and/or blade code inside pages
Is there a way to allow php inside a page? Not just in the template. A good example of where this would be useful is using partials on certain pages etc.
Unless I mistake your question you can either use @ syymbols for shorthand php or you can open a php tag.
As long as the extension of the file you are working in is .php, then this will always work.
//do some stuff
I'm referring to what is actually put in the page in the backend... not in the template file.
I am still not positive I know what you are asking.
Do you want to be able to add a snippet of code into the content/body of a page and have it execute on page load?
Hey, there is no such feature, that's not modern apps are doing, nor they should do that.
However, you can build module similar to wordpress shortcodes that emulate the similar behavior.
Map specific parts of the text to some PHP service.
This would require you to add middleware before page module and filter content data for that kind of information.
Something like shortcodes I guess would be useful.