Skip to content

Commit

Permalink
Show application title from config/settings.php in browser titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
koelle25 committed Dec 8, 2017
1 parent 57fcd53 commit 9a9687d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'check' => $container->auth->check(),
'user' => $container->auth->user()
]);
$view->getEnvironment()->addGlobal('title', $conf['app.name']);

return $view;
};
Expand Down
2 changes: 1 addition & 1 deletion resources/views/templates/main-layout.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>PST-Stack</title>
<title>{{ title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Expand Down

0 comments on commit 9a9687d

Please sign in to comment.