Exemplo n.º 1
0
 public function destroy($id)
 {
     $book = Books::find($id);
     ClydeUpload::exists($book->book_cover) == true ? ClydeUpload::delete($book->book_cover) : false;
     $book->delete();
     return redirect()->route('admin.books.index');
 }
 public function destroy($id)
 {
     $author = Authors::find($id);
     ClydeUpload::exists($author->photo) == true ? ClydeUpload::delete($author->photo) : false;
     $author->delete();
     return back();
 }