@@ -1,5 +1,7 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@inject('tag_detector', 'App\Services\TagDetectorService)
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
@@ -39,7 +41,7 @@
|
||||
@foreach($posts as $post)
|
||||
<div class="post">
|
||||
<p>{{ \Carbon\Carbon::instance($post->date_post)->diffForHumans() }}</p>
|
||||
<p>{{ $post->content }}</p>
|
||||
<p>{!! $tag_detector->linkTagFrom($post->content) !!}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user