Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set content from database? #11

Closed
leo4all opened this issue Nov 13, 2016 · 3 comments
Closed

set content from database? #11

leo4all opened this issue Nov 13, 2016 · 3 comments

Comments

@leo4all
Copy link

leo4all commented Nov 13, 2016

Would be nice to have content set from database identified by slug or route

@leo4all leo4all changed the title set contet from database? set content from database? Nov 13, 2016
@eusonlito
Copy link
Owner

I don't understand your request, can you provide an example? :)

@leo4all
Copy link
Author

leo4all commented Nov 13, 2016

Like set in midleware or in another place the content for Metatags, using DB as page source.

$page = Page::where('route / slug', $request->route->getName() )->get();
Meta::title($page->title);

@eusonlito
Copy link
Owner

Yes, you can do it without problem from controller. Check README examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants