Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel change post request before save

public function store(Request $request)
{
    $data = $request->all();
    $data['hostname'] = gethostbyaddr($_SERVER['REMOTE_ADDR'];

    Systems::create($data);
}
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #change #post #request #save
ADD COMMENT
Topic
Name
6+8 =