', -1)->orderBy('display_order')->get(); } public function getAuthorsById($authorId) { return Authors::findOrFail($authorId); } public function delete($authorId) { return Authors::destroy($authorId); } public function create(array $authorDetail) { return Authors::create($authorDetail); } public function update($authorId, array $newDetails) { return Authors::where('author_id', $authorId)->update($newDetails); } }