function del($ctx) { $id = intval($_GET['id']); $contract = Contract::get($id); if ($contract) { $contract->set_del(); } _redirect(_list_url()); }
/** * Display a listing of the resource. * GET /contracts * * @return Response */ public function index() { return Contract::get(); }