BadMethodCallException : Method Illuminate\Database\Query\Builder::offers does not exist
1
Solution:
Update your DatabaseSeeder to this and check:
factory(App\Task::class, 10)->create()->each(function ($task) {
return $task->offers()->save(factory(App\Offer::class)->create());
});
If you are running the application via php artian serve
then restart it.