I am using Laravel 5 and I followed by this tutorial Link
public function show($id)
{
$post = Post::find($id);
if (is_null($post)) {
return $this->sendError('Post not found.');
}
return $this->sendResponse($post->toArray(), 'Post retrieved successfully.');
}
For showing I am using above function. it working fine but my problem is i used cuid
field in my table I want to get collection based on cuid
how to get custom collection
also i need to use Angular Js 1 how to integrate can you please some one guide me how to achive this
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire