/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Marca::destroy($id); return redirect('marca'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Marca::destroy($id); return response()->json(['status' => 'OK', 'deleted' => true], 202); }