I believe the error message indicates that $setting has no values in it which is why only the create...
What do you get when you dd($username)? Are you sure the username is getting passed to your method?...
The Laravel portal for problem solving, knowledge sharing and community building.
The community