laravel change post request before save code example
Example: laravel change post request before save
public function store(Request $request)
{
$data = $request->all();
$data['hostname'] = gethostbyaddr($_SERVER['REMOTE_ADDR'];
Systems::create($data);
}