|
@@ -221,8 +221,7 @@ class BeanRepository
|
|
->select('post.*','post_data.pv')
|
|
->select('post.*','post_data.pv')
|
|
->find($request['post_id']);
|
|
->find($request['post_id']);
|
|
if ($post){
|
|
if ($post){
|
|
- $created_at = $post_detail->created_at;
|
|
|
|
- $post->created_time = Carbon::parse($created_at)->diffForHumans();
|
|
|
|
|
|
+ $post->created_time = Carbon::parse($post->created_at)->diffForHumans();
|
|
$imgs = [];
|
|
$imgs = [];
|
|
foreach($post->imgs as $img){
|
|
foreach($post->imgs as $img){
|
|
$imgs[] = $img['img'];
|
|
$imgs[] = $img['img'];
|