This commit is contained in:
2021-12-21 13:31:06 +08:00
parent 03bd00c545
commit 4328cd3624
2 changed files with 10 additions and 4 deletions

View File

@@ -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);