*/ public function handle(BillSettings $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, ]; } public function asController(BillSettings $settings): Response { session()->put('menu', 'setting'); session()->put('title', 'Rechnungs-Einstellungen'); return Inertia::render('setting/Bill', [ 'data' => $this->handle($settings), ]); } }