Skip to content

Commit

Permalink
str_limit() to Str::limit()
Browse files Browse the repository at this point in the history
Update method to Laravel 6.0 Support
  • Loading branch information
albertoelias123 authored Sep 7, 2019
1 parent 7840e3b commit b071e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/views/blog/show.stub
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<h2 class="font-weight-bold serif my-3 @if(!empty($data['next']->featured_image)) text-white @endif">
<a href="{{ route('blog.post', $data['next']->slug) }}"
class="title">{{ $data['next']->title }}</a></h2>
<p class="serif body @if(!empty($data['next']->featured_image)) text-white-50 @else text-muted @endif">{{ str_limit(strip_tags($data['next']->body), 140) }}</p>
<p class="serif body @if(!empty($data['next']->featured_image)) text-white-50 @else text-muted @endif">{{ Str::limit(strip_tags($data['next']->body), 140) }}</p>
</div>
@endif
@if($data['random'])
Expand All @@ -108,7 +108,7 @@
<h2 class="font-weight-bold serif my-3 @if(!empty($data['random']->featured_image)) text-white @endif">
<a href="{{ route('blog.post', $data['random']->slug) }}"
class="title">{{ $data['random']->title }}</a></h2>
<p class="serif body @if(!empty($data['random']->featured_image)) text-white-50 @else text-muted @endif">{{ str_limit(strip_tags($data['random']->body), 140) }}</p>
<p class="serif body @if(!empty($data['random']->featured_image)) text-white-50 @else text-muted @endif">{{ Str::limit(strip_tags($data['random']->body), 140) }}</p>
</div>
@endif
</div>
Expand Down

0 comments on commit b071e8c

Please sign in to comment.