transform fields in form request

using this snippet we can transform request input key to match database column names
 avatar
decayingMind
php
a year ago
128 B
2
Indexable
Never
<? php
public fuction prepareForValidation()
{
    $this->merge([
        'column_name' => $this->request_key_name
        ]);
}