Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel change post request before save

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

    Systems::create($data);
}
Comment

PREVIOUS NEXT
Code Example
Php :: php file_get_contents follow redirect 
Php :: how to check if php is connected to database 
Php :: validation file type laravel 
Php :: storage image not showing in laravel 
Php :: php date + one day 
Php :: how to find php.ini 
Php :: get the string after a character in php 
Php :: php post form to self 
Php :: refresh seeder laravel 
Php :: php foreach reverse 
Php :: laravel/ui v3.0.0 requires php ^7.3 - your php version (8.0.2) does not satisfy that requirement. 
Php :: homebrew install php 7.4 
Php :: command laravel for php artisan make :auth 
Php :: php string to int 
Php :: index.php wordpress 
Php :: php check if parameter exists 
Php :: number format comma php 
Php :: laravel redirect external url 
Php :: hit a simple url using curl in php 
Php :: get thumbnail alt wordpress 
Php :: select distinct laravel 
Php :: php find multiple strings in string 
Php :: what is app_env in laravel 
Php :: npm watch laravel 
Php :: php check if cli 
Php :: laravel doesNotHave in model 
Php :: session has laravel blade 
Php :: How to install php-fpm 
Php :: wp limit post revisions 
Php :: laravel migration change column name 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =