begin order form with registration

This commit is contained in:
Ludovic CANDELLIER
2022-06-26 23:33:39 +02:00
parent c2fd71e3d1
commit e435752484
36 changed files with 442 additions and 423 deletions

View File

@@ -2,23 +2,19 @@
namespace App\Repositories;
use App\Repositories\Core\Auth\Users;
use App\Repositories\Users;
use App\Repositories\Shop\Categories;
use App\Repositories\Shop\Homepages;
class Config
{
public static function init()
{
$data['user'] = self::getUser();
return ['init' => $data];
}
public static function getUser()
{
if (Users::getUser()) {
$data = Users::getInfo();
} else {
$data = false;
}
return $data;
return [
'auth' => Users::getUser() ? Users::getInfo() : false,
'categories' => Categories::getTreeVisibles(),
'footer' => Homepages::getFooter(),
'extra_footer' => Homepages::getExtraFooter(),
];
}
}