i am facing issue when i register new employee "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);
// dd($this->_request->all());
if($this->_request->has('save_button')){
// dd($this->_request->all());
$user= User::create([
'username' => $this->_request->input('username'),
'email' => $this->_request->input('email'),
'password' => $hashedPassword
]);
Hello @naeemraja777
Can you show a little bit more from your code?
The User create is something that should go to the database but I don't see any error in that part.
Ps. I have updated your post to have all the code in a code block.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community