phpcs fix
This commit is contained in:
parent
499674599b
commit
6e73872efc
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ 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->format('m') .'/' . $slug);
|
||||
return redirect('/blog/'
|
||||
. $article->updated_at->year
|
||||
. '/' . $article->updated_at->format('m')
|
||||
.'/' . $slug);
|
||||
}
|
||||
|
||||
return view('articles.show', compact('article'));
|
||||
|
|
Loading…
Add table
Reference in a new issue