예제 #1
0
 /**
  * Delete the specified group
  *
  * @param Material $material
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function destroy(Material $material)
 {
     $this->authorize('delete_materials');
     $material->delete();
     flash()->success('Material Deleted', 'The material has been removed');
     return redirect('material');
 }