Post::select(['id as the_id'])->first();
By doing so the result will be as follows.
App\Models\Post {#4736 the_id: 3, }
1.2K
3 years ago
0 comments
Post::select(['id as the_id'])->first();
App\Models\Post {#4736 the_id: 3, }
Frontend
Resource
Average
Average
No recent searches
Leave a reply