route('o')->serviceUserAuthorised(Auth::user()); } /** * Get the validation rules that apply to the request. * * @return array * @todo This is specific to broadband - this needs to be more generic. */ public function rules(Request $request) { if (! $request->isMethod('post')) return []; return [ 'broadband.product_id' => 'required|exists:products,id', 'broadband.change_fee' => 'nullable|numeric', 'broadband.start_at' => 'required|date', // @todo Check that it is not more than 1 billing cycle ago, and not future. ]; } }