BlogController
BlogController.php
show method
BlogController.php
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Blog and Articles
BlogController
public function index()
{
$articles = Article::with('user')->active()->latest()->get();
return ArticleResource::collection($articles);
}
show method
public function show(Article $article)
{
abort_if(!$article->active, 404);
return new ArticleResource($article);
}
