/** * Create a new user instance after a valid registration. * * @param array $data * @return Author */ protected function create(array $data) { return Author::create(['first_name' => $data['first_name'], 'last_name' => $data['last_name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $author = Author::findOrFail($id); return view("authors.show")->with("author", $author); }