/** * Get all of the tasks for a given user. * * @param User $user * @return Collection */ public function getFiscalDocumentStatus($id) { return FiscalDocumentStatus::where('id', $id)->orderBy('id', 'asc')->get(); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // $FiscalDocumentStatus = FiscalDocumentStatus::find($id); $FiscalDocumentStatus->delete(); return redirect('/fiscalDocumentStatus')->with('delete_message', 'Fiscal Document Status deleted.'); }