AB
Size: a a a
AB
AB
UB
UB
UB
AB
MR
Y
public function index(ArticleRepositoryInterface $articles, string $slug)
{
if (! $article = $articles->findBySlug($slug)) {
throw new NotFoundHttpException('xxxx');
}
return $this->views->make('article', ['article' => $article]);
}
KN
KN
KN
public function updating(Article $article) // or creating
{
if(! $article->slug) {
$article-> slug = Str::slug($article->title);
}
}
UB
KN
KN
KN
KN
KN
Y
D
D