/** Remove the specified resource from storage. @param $biaya @return Response */ public function postDelete($biaya) { // Declare the rules for the form validation $rules = array('idkode' => 'required'); // Validate the inputs $validator = Validator::make(Input::all(), $rules); // Check if the form validates with success if ($validator->passes()) { $idkode = $biaya->kdbiaya; $biaya->delete(); // Was the blog biaya deleted? $biaya = Biaya::find($idkode); if (empty($biaya)) { // Redirect to the blog biayas management page return Redirect::to('admin/biayas')->with('success', Lang::get('admin/biayas/messages.delete.success')); } } // There was a problem deleting the blog biaya return Redirect::to('admin/biayas')->with('error', Lang::get('admin/biayas/messages.delete.error')); }