public function readLogDetail($id_policy, $db_key, $session_key) { $reportLog = RmanOutput::where('db_key', $db_key)->where('session_key', $session_key)->get(); $execDetail = RmanBackupJobDetails::where('db_key', $db_key)->where('session_key', $session_key)->first(); $policyDetail = Policy::find($id_policy); //dd($reportLog); return View::make('reports.reportsReadLogDetail')->with('policyDetail', $policyDetail)->with('reportLog', $reportLog)->with('execDetail', $execDetail); }
public function delete($id_policy) { Policy::destroy($id_policy); return redirect()->action('PoliciesController@read')->withInput(Request::only('id_policy')); }