premier commit

This commit is contained in:
Valentin
2023-05-15 04:56:12 +02:00
commit 8d4cc949a2
48 changed files with 11277 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<?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');
}
}