后台会员创建
This commit is contained in:
parent
26e79c0e92
commit
4f264f3205
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue