\App\ModelsArticle

Summary

Methods
Properties
Constants
scopeRecent()
categories()
tags()
hasCategory()
hasTag()
No public properties found
No constants found
No protected methods found
$fillable
N/A
No private methods found
No private properties found
N/A

Properties

$fillable

$fillable : 

Type

Methods

scopeRecent()

scopeRecent(  $query) 

Parameters

$query

categories()

categories() 

tags()

tags() 

hasCategory()

hasCategory(  $category_id) : boolean

检查文章是否属于该分类

Parameters

$category_id

int 分类ID

Returns

boolean

hasTag()

hasTag(  $tag_id) : boolean

检查文章是否有此标签

Parameters

$tag_id

int 标签ID

Returns

boolean