微调
This commit is contained in:
@@ -13,6 +13,7 @@ class ArticleController extends Controller
|
||||
public function index(Category $category)
|
||||
{
|
||||
$articles = Article::ByCategory($category->id)
|
||||
->where('status', 1)
|
||||
->orderBy('created_at', 'desc')
|
||||
->paginate(5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user