Is it possible to access the $request variable inside the Request class in Laravel?
When i make a validation inside the Controller like in the following Laravel example: Validator::make($request->all(), [ 'credit_card_number' => 'required_if:payment_type,cc' ]); I can easily access the $request because I'm inside the controller method. However, I've noticed that using custom Request classes…