I am using Laravel lucid framework and I have to call model setAttribute explicitly but getting below error:
ErrorException: Array to string conversion in
Code is
$user = new User;
$user->setAttribute('email',$this->email);
print_r($user);exit();
Please help
Thanks
dd($this->email)output?