- public function userCompletedOnboarding()
- {
- /*
- * Ideally, we use the `make` method to not persist the dummy data to the database.
- * Sometimes, your mailable needs a relationship or reach directly to the database
- * so data need to be stored temporarily.
- * You can cleanup your dummy models via the `afterAll` methods, that run after
- * every example, or in `after{$methodName}` if you only need to do it for one example.
- */
- $this->user = User::factory()->create([
- 'name' => 'John Doe'
- ]);
- return new CompletedOnboarding($this->user);
- }
/home/mailviewer/laravel-mail-view.demo.sigerr.dev/tests/MailView/UserPreview.php:15