관리-도구
편집 파일: Customer.php
<?php /** * @copyright Copyright 2003-2020 Zen Cart Development Team * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version GIT: $Id: $ */ namespace App\Models; use Illuminate\Database\Eloquent\Model as Eloquent; class Customer extends Eloquent { protected $table = TABLE_CUSTOMERS; protected $primaryKey = 'customers_id'; public $timestamps = false; public function addressBooks() { return $this->hasMany(AddressBook::class, 'customers_id'); } public function CustomerInfo() { return $this->hasOne(CustomerInfo::class, 'customers_info_id'); } }