<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Models;use Illuminate\Database\Eloquent\Model;class App extends Model{protected $fillable=['name','package_name','application_id','logo','download_url','qrcode_url','platform','version','update_log','channel_id','channel_code','status'];public function application(){return $this->belongsTo(Application::class,'application_id','id');}public function channel(){return $this->belongsTo(Channel::class,'channel_code','channel_code');}}
?>