/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy(CreditCategory $categoria)
 {
     $categoria->delete();
     return redirect('categoria');
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return CreditCategory::all();
 }