In case of building an api with Laravel do we need to return a json like this on each request :
$datas = User::find($id)->get();
return response()->json($datas);
Or just return the collection like this is enough ?
return $datas;
What is the cleanest way ? Thanks !