Add navigationGroup to UrlLinkResource

This commit is contained in:
f4ilji
2024-10-29 15:31:12 +05:00
parent 6d516d1750
commit 1f13cb033a
7 changed files with 18 additions and 5 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
namespace App\Http\Resources;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
@@ -18,7 +19,7 @@ class PostSearchResource extends JsonResource
'id' => $this->id,
'title' => $this->title,
'slug' => $this->slug,
'created_post' => $this->created_at->diffforhumans(),
'created_post' => Carbon::parse($this->publish_at)->diffforhumans(),
];
}
}