'required|numeric', //'tax_percentage' => 'required|integer|min:0|max:100', //'discount_percentage' => 'required|integer|min:0|max:100', //'shipping_amount' => 'required|numeric', 'total_amount' => 'required|numeric', 'paid_amount' => 'required|numeric', 'note' => 'nullable|string|max:1000' ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Gate::allows('create_pos_sales'); } }