Skip to content
This repository was archived by the owner on Jul 3, 2022. It is now read-only.

Commit e6899d6

Browse files
committed
Fix category url and filenames case
1 parent 9603393 commit e6899d6

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Laravel/app/config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
'View' => 'Illuminate\Support\Facades\View',
195195

196196
'Markdown' => 'GrahamCampbell\Markdown\Facades\Markdown',
197-
'BootForm' => 'Grafikart\Facades\Bootform'
197+
'BootForm' => 'Grafikart\Facades\BootForm'
198198
),
199199

200200
);

Laravel/app/views/posts/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@section('title', 'Blog' . (isset($_GET['page']) ? ", page {$_GET['page']}" : "" ));
1+
@section('title', 'Blog' . (isset($_GET['page']) ? ", page {$_GET['page']}" : "" ))
22

33
<div class="row">
44
<div class="col-md-8">
@@ -14,7 +14,7 @@
1414
<article>
1515
<h2><a href="{{ $post->url }}">{{ $post->name }}</a></h2>
1616
<p><small>
17-
Category : <a href="{{ $post->category->url }}">{{ $post->category->name }}</a>,
17+
Category : <a href="{{ $post->category_url }}">{{ $post->category->name }}</a>,
1818
by <a href="{{ $post->author_url }}">{{ $post->user->username }}</a> on <em>{{ $post->created_at->format('F jS, H:i') }}</em>
1919
</small></p>
2020
<p>{{ Str::words($post->content, 60) }}</p>

Laravel/app/views/posts/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h1>{{ $post->name }}</h1>
88

99
<p><small>
10-
Category : <a href="{{ $post->category->url }}">{{ $post->category->name }}</a>,
10+
Category : <a href="{{ $post->category_url }}">{{ $post->category->name }}</a>,
1111
by <a href="index.html">{{ $post->user->username }}</a> on <em>{{ $post->created_at->format('F jS, H:i') }}</em>
1212
</small></p>
1313

0 commit comments

Comments
 (0)