{{modelName}}Repository = ${{modelName}}Repository; } /** * Get's a record by it's ID * * @param int * @return collection */ public function get($id) { return $this->{{modelName}}Repository->get($id); } /** * Get's all records. * * @return mixed */ public function all() { return $this->{{modelName}}Repository->all(); } /** * Deletes a record. * * @param int */ public function delete($id) { return $this->{{modelName}}Repository->delete($id); } /** * Updates a post. * * @param int * @param array */ public function update($id, array $data) { $this->{{modelName}}Repository->update($id, $data); } }