Good afternoon. I have the following code that perfectly saves.
public function store(Request $request)
{
$this->validate($request, [
'servidor' => 'required|unique:servidors|max:255',
// 'dtprotocolo' => 'date|date_format:Y-m-d',
]);
Servidor::create($request->all());
Session::flash('create_servidor', 'Servidor cadastrado com sucesso!');
return redirect(route('servidor.index'));
}
But I would like to change the value $ request-> server to uppercase. How to proceed?