This commit is contained in:
f4ilji
2024-11-25 14:23:49 +05:00
parent 37a06cd898
commit bbc9fda376
4 changed files with 23 additions and 9 deletions
@@ -37,7 +37,7 @@ class ClientPostController extends Controller
$tags = \Spatie\Tags\Tag::whereIn('id', $tagIds)->get();
$posts = ClientPostListResource::collection(Post::query()
->with('category')
->select('title', 'slug', 'authors', 'category_id', 'preview', 'search_data', 'created_at')
->select('title', 'slug', 'authors', 'category_id', 'preview', 'search_data', 'publish_at')
->where('status', '=', 'published')
->where('publish_at', '<', Carbon::now())
->when(request()->input('search'), function ($query, $search) {