Skip to content
Discussion options

You must be logged in to vote

Solution:

<?php

namespace App\Data;

use App\Domain\Support\Enums\ThemeApperance;
use Spatie\LaravelData\Data;

class UserSettings extends Data
{
	public UserGeneralSettings $general;

    public UserNotificationSettings $notification;
    
	public UserApperanceSettings $apperance;

    public function __construct(
 		//
    ) {
        $this->general = new UserGeneralSettings();

		$this->notification = new UserNotificationSettings();

		$this->apperance = new UserApperanceSettings();
    }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by francoism90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant