*/ public function handle(LetterSettings $settings): array { return [ 'from_long' => $settings->from_long, 'from' => $settings->from, 'mobile' => $settings->mobile, 'email' => $settings->email, 'website' => $settings->website, 'address' => $settings->address, 'place' => $settings->place, 'zip' => $settings->zip, 'iban' => $settings->iban, 'bic' => $settings->bic, ]; } public function asController(LetterSettings $settings): Response { session()->put('menu', 'setting'); session()->put('title', 'Rechnungs-Einstellungen'); return Inertia::render('setting/Bill', [ 'data' => $this->handle($settings), ]); } }