public function destroy(Author $author)
 {
     $deleted = $author->delete();
     session()->flash('flash_message', 'Author was removed with success');
     if (Request::wantsJson()) {
         return (string) $deleted;
     }
     return redirect('authors');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  Author $author
  * @return Response
  */
 public function destroy(Author $author)
 {
     $author->delete();
     return $this->respondTo(['html' => redirect('authors', 303), 'default' => 'Your author was removed with success']);
 }