DEV Community

Naeemraja777
Naeemraja777

Posted on

Laravel developer

i am facing this error when I insert record in Laravel here is my problem i have try many solution but no one work please help me "Illuminate\Database\Grammar::parameterize(): Argument #1 ($values) must be of type array, string given, called in F:\loyaloid-main\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 1047" here is my code " // $password = Str::random(8);

// $hashedPassword = Hash::make($password);

$user=new User;

$user->username = $this->_request->username;

$user->email =$this->_request->email;

// $user->password=$hashedPassword;



    $user->save();"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)