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

namespace App\Models;use Illuminate\Database\Eloquent\Model;class Article extends Model{protected $fillable=['cover','title','corner_id','category_id','base_views','intro','content','status'];public function corner(){return $this->belongsTo(Corner::class,'corner_id','id');}public function category(){return $this->belongsTo(ArticleCategory::class,'category_id','id');}public function cornerArticle(){return $this->belongsTo(Corner::class,'corner_id','id');}}
?>