We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I pass variables in layouts\layout.blade.php?
Eg: I want to pass variable in title
The text was updated successfully, but these errors were encountered:
You just have to define it in the file config.php
config.php
For example, what I always use is:
'before' => function($theme) { $theme->setTitle(Modules\Texts\Models\Text::get("titulo")); },
You only need to enter the variable inside $theme->setTitle($var);
$theme->setTitle($var);
Then from the layout:
<head> <title>@get('title')</title> </head>
Sorry, something went wrong.
it's work. Thank you for your package and your answer sir. 👍
No branches or pull requests
How can I pass variables in layouts\layout.blade.php?
Eg: I want to pass variable in title
The text was updated successfully, but these errors were encountered: