Illuminate\Contracts\Container\BindingResolutionException
Unresolvable dependency resolving [Parameter #0 [ <required> $user ]] in class App\Mail\ThanksForSubmittingMail
An unhandled exception occurred on line 1064
1061 |
|
---|---|
1062 |
|
1063 |
|
1064 |
|
1065 |
|
Solution
my constructor did not contain my user model. i had the following: public function __construct($user) { $this->user = $user; } and changed it to: public function __construct(User $user) { $this->user = $user; } That fixed it for me
Apr 06, 2021
•
Anyone
Install the browser extension
Found this solution helpful? Try our extension for quick solutions to your Laravel errors.
Add to Chrome - It's free
0 replies