is there way in controller?
$request->input(['new_field_name' => 'new_val']);
i've googled lot, thing i've found related laravel's 4.x formatinput method, has been removed 5.x
i need inject specific field in $request when request has passed validation, save new record in db.
any clue? everyone!
method merge
right tool this.
example of typical use case (saving slug given title):
$request->merge(['slug' => str::slug($request->title)]);
Comments
Post a Comment