user() !== null; } public function rules(): array { return [ 'invoice_number' => ['nullable', 'string', 'max:100'], 'amount' => ['nullable', 'numeric', 'gt:0', 'max:999999999999.99'], 'paid_amount' => ['nullable', 'numeric', 'gt:0', 'max:999999999999.99'], 'total' => ['nullable', 'numeric', 'gt:0', 'max:999999999999.99'], 'unit_cost' => ['nullable', 'numeric', 'gt:0', 'max:999999999999.99'], 'fee' => ['nullable', 'numeric', 'gt:0', 'max:999999999999.99'], ]; } }