Most recent posts
+Most recent posts
@if ($posts->count()) -{{ $post->name }}
@@ -24,7 +24,15 @@{{ str_limit($post->text, $limit = 100, $end = '...') }}
- Continue reading + @if($post->tags->isNotEmpty()) + + @endif + + Continue readingNot available posts yet
@endif diff --git a/resources/views/posts/edit.blade.php b/resources/views/posts/edit.blade.php index 536f8e1..56e488f 100644 --- a/resources/views/posts/edit.blade.php +++ b/resources/views/posts/edit.blade.php @@ -21,7 +21,7 @@ class="form-control @error('name') is-invalid @enderror" id="form-name" name="name" - value="{{ $post->name }}" + value="{{ old('name', $post->name) }}" required="" > @@ -42,7 +42,7 @@ class="form-control @error('name') is-invalid @enderror" class="form-control @error('description') is-invalid @enderror" id="form-description" name="description" - value="{{ $post->description }}" + value="{{ old('description', $post->description) }}" required="" > @@ -65,7 +65,7 @@ class="form-control @error('text') is-invalid @enderror" cols="30" rows="10" placeholder="Post content here" - required="">{{ $post->text }} + required="">{{ old('text', $post->text) }}