Fix a couple of tests
This commit is contained in:
parent
53875f08eb
commit
499674599b
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ class ArticlesController extends Controller
|
|||
{
|
||||
$article = Article::where('titleurl', $slug)->firstOrFail();
|
||||
if ($article->updated_at->year != $year || $article->updated_at->month != $month) {
|
||||
return redirect('/blog/' . $article->updated_at->year . '/' . $article->updated_at->month .'/' . $slug);
|
||||
return redirect('/blog/' . $article->updated_at->year . '/' . $article->updated_at->format('m') .'/' . $slug);
|
||||
}
|
||||
|
||||
return view('articles.show', compact('article'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue