Example #1
0
 /**
  * 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'])]);
 }
Example #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $author = Author::findOrFail($id);
     return view("authors.show")->with("author", $author);
 }