RadicalLoop
1 min readApr 30, 2018

--

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?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)