'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; protected $hidden = [ 'feishu_app_secret', ]; /** * 获取启用的公司 */ public function scopeActive($query) { return $query->where('status', 1); } /** * 根据飞书租户Key查找 */ public function scopeByFeishuTenantKey($query, string $tenantKey) { return $query->where('feishu_tenant_key', $tenantKey); } /** * 根据飞书AppID查找 */ public function scopeByFeishuAppId($query, string $appId) { return $query->where('feishu_app_id', $appId); } }