[5.0] FormRequest: Returning the saved data?

Posted 4 years ago by kennonb

Ok, sorry for the probably inane question. I'm sure I'm just overlooking something. But in 5.0, in FormRequest's returned response, I'm not seeing where I would get the returned model that was just saved.

Before, I could simply attach it to a variable and have access to all of the data from the created record, but I'm a bit lost with this new FormRequest implementation.

Just so we're on the same page. This is what I'm doing...

I'm injecting the FormRequest into my controller's Create method, and returning a success message if the validation passes.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.