begin order form with registration
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user