Validating a request and creating a model in one go
Tweet – – twitter.com
This works in Laravel 5.5 because $request->validate()
only returns the validated data. Beautiful.
Yeah. I had originally sent that PR. I love it. Makes for these lovely controller methods. Just look at this❗ pic.twitter.com/FlxIlJVQXN
— Joseph Silber (@joseph_silber) September 14, 2017