Support the ongoing development of Laravel.io →
Views Blade

Instead of having HTML files and using @include or View::make(path to file) to render them as output, is there a way to get view's (html data) from database and render as output? Something like MyBB, VB or even WordPress. they get their templates from database.

Getting data from database is no matter, rendering them as output is matter.

Last updated 2 years ago.
0

What do you mean? You can just return the html from the database? What have you tried?

$page = Page::find(1);
return $page->content;
Last updated 2 years ago.
0

No, I want to get the whole View itself from database as a template.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.