Boilerplate to use a Directus Instance to Build a Custom Website, Content will be Manage by Directus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
278 B

@php
$content = $post['lead'].$post['content'];
$readtime = (new \Mtownsend\ReadTime\ReadTime($content))->timeOnly(true)->setTranslation([
'minute' => ''
])->get();
@endphp
<div class="post__readtime">
Reading time {{ $readtime }} Minutes
</div>