Thanks Muhammad Nauman .. “Form Request” is indeed a beautiful way of delegating validation logic from controller to its specific class, and make controllers look even cleaner.
By the way, a question:
With
Request $request
in the controller
we can do:
$request->session()->put('key', 'value');
but with, for e.g.
ChangePasswordRequest $request
do we get the session() from $request object in the same way as above?