/** * Implement find($id) * * Note: The primary key of JobExperience is defined as ['name','id'] * therefore $id must be an array ['name' => value, 'id' => value] */ public function find($id) { // using the Eloquent model return JobExperience::findOrFail($id); }