system/models/customer/authentication.php
(完整代码) 637B<?php
/**
* authentication.php
*
* @copyright 2020 damicms.com - All Rights Reserved
* @link https://www.guangdawangluo.com
* @author stiffer.chen <chenlin@damicms.com>
* @created 2020-06-2020/6/29 14:54
* @modified 2020-06-2020/6/29 14:54
*/
namespace Models\Customer;
use Models\Base;
use Models\Customer;
class Authentication extends Base
{
protected $table = 'customer_authentication';
public function customer()
{
return $this->belongsTo(Customer::class, 'customer_id');
}
public function scopeByProvider($query, $provider)
{
return $query->where('provider', $provider);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
