authorize('reports.view'); $report = $request->user()->savedReports()->create([ 'name' => $request->get('report_name'), 'options' => $request->except(['_token', 'report_name']), ]); return redirect()->route('reports/custom', ['report' => $report->id]); } }