This is the first time I am dealing with API Resources in Laravel. I have create Resource Collection and using it's default definition. Changed nothing.
With pagination it's working awesome. When I call /model/{id}, it gives error
The issue is that you are giving a Model instance to a ResourceCollection instance. You would need a separate resource class to represent the single model instance:
public function show(Language $language) {
return new LanguageResource($language);
}