When doing tests, any custom methods on the Users model (in my case fresh installation for Laravel Jetstream) does not register. I know the recommended auth scaffolding is Laravel Breeze, just testing Jetstream with Bazar.
Steps To Reproduce:
Fresh install of Laravel
Install Laravel Jetstream
Run tests
BadMethodCallException: Call to undefined method Bazar\Models\User::deleteProfilePhoto()
You can fix this by changing Bazar\Database\Factories\UserFactory
From
use Bazar\Models\User;
To
use App\Models\User;
Description:
When doing tests, any custom methods on the Users model (in my case fresh installation for Laravel Jetstream) does not register. I know the recommended auth scaffolding is Laravel Breeze, just testing Jetstream with Bazar.
Steps To Reproduce:
Fresh install of Laravel Install Laravel Jetstream Run tests
BadMethodCallException: Call to undefined method Bazar\Models\User::deleteProfilePhoto()
You can fix this by changing
Bazar\Database\Factories\UserFactory
From
use Bazar\Models\User;
Touse App\Models\User;