21 lines
464 B
PHP
21 lines
464 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Repositories\Users;
|
|
use App\Repositories\Shop\Categories;
|
|
use App\Repositories\Shop\Homepages;
|
|
|
|
class Config
|
|
{
|
|
public static function init()
|
|
{
|
|
return [
|
|
'auth' => Users::getUser() ? Users::getInfo() : false,
|
|
'categories' => Categories::getTreeVisibles(),
|
|
'footer' => Homepages::getFooter(),
|
|
'extra_footer' => Homepages::getExtraFooter(),
|
|
];
|
|
}
|
|
}
|