Save blade templates to database rather than file

后端 未结 3 656
说谎
说谎 2020-12-20 01:44

I want to save my blade templates to database, because the header and footer of each page is customizable for the user. I want to let

3条回答
  •  情书的邮戳
    2020-12-20 02:31

    I asked and answered a similar question some days ago. So far as I know, Blade doesn't process view content from database columns. Although you can use compileString() method of View. But you should have a look at the following questions.

    Extend Blade Template from Database stored string

    Let users create custom blade layouts / store in database

提交回复
热议问题