调整
This commit is contained in:
@@ -17,7 +17,12 @@ class IndexController extends Controller
|
||||
public function index()
|
||||
{
|
||||
//随手拍
|
||||
$ssp = ArticlePicture::orderBy('sort', 'desc')->where('category_id', 6)->take(3)->get();
|
||||
$ssp = ArticlePicture::latest()
|
||||
->where('category_id', 6)
|
||||
->where('pictures', '<>', '[]')
|
||||
->take(4)
|
||||
->get();
|
||||
|
||||
//最新资讯
|
||||
$all_articles = Article::latest()
|
||||
->whereNotIn('category_id', [20, 21, 22])
|
||||
|
||||
Reference in New Issue
Block a user