create(); Notification::query()->create([ 'user_id' => $user->id, 'type' => 'comment', 'data' => [ 'type' => 'comment', 'message' => 'Someone commented on your artwork', 'url' => '/dashboard/comments/received', ], 'read_at' => null, ]); $response = $this->actingAs($user)->get('/dashboard/notifications'); $response ->assertOk() ->assertSee('Notifications', false) ->assertSee('Someone commented on your artwork', false) ->assertSee('Unread', false); });