123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\View\Composers;
- use Roots\Acorn\View\Composer;
- class App extends Composer
- {
- /**
- * List of views served by this composer.
- *
- * @var array
- */
- protected static $views = [
- '*',
- ];
- /**
- * Data to be passed to view before rendering.
- *
- * @return array
- */
- public function with()
- {
- return [
- 'siteName' => $this->siteName(),
- ];
- }
- /**
- * Returns the site name.
- *
- * @return string
- */
- public function siteName()
- {
- return get_bloginfo('name', 'display');
- }
- }
|