1 Star 0 Fork 50

ForkExcellentCode/ModStartBlog

forked from MZ/ModStartBlog 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Blog.php 400 Bytes
Copy Edit Raw Blame History
<?php
namespace Module\Blog\Model;
use Illuminate\Database\Eloquent\Model;
class Blog extends Model
{
protected $table = 'blog';
public static function published()
{
return self::where([
'isPublished' => true,
]);
}
public static function unPublished()
{
return self::where([
'isPublished' => false,
]);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fork-excellent-code/ModStartBlog.git
git@gitee.com:fork-excellent-code/ModStartBlog.git
fork-excellent-code
ModStartBlog
ModStartBlog
master

Search