后台会员创建

This commit is contained in:
TL 2022-07-01 11:08:30 +08:00
parent 26e79c0e92
commit 4f264f3205
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
/**
* CustomerService.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author TL <mengwb@opencart.cn>
* @created 2022-07-01 11:15:25
* @modified 2022-07-01 11:15:25
*/
namespace Beike\Admin\Services;
use Beike\Models\Category;
use Beike\Models\CategoryPath;
use Beike\Repositories\CustomerRepo;
use Illuminate\Support\Facades\DB;
class CustomerService
{
public static function create($data)
{
$data['locale'] = setting('locale');
$customer = CustomerRepo::create($data);
return $customer;
}
}