user()->can('manage_payments'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'type' => 'required|numeric', 'amount' => 'required|numeric', 'date' => 'required|date|date_format:Y-m-d', 'customer_id' => 'required|numeric', 'description' => 'required|max:255' ]; } }