*/ public function handle(): LengthAwarePaginator { return Invoice::select('*')->with('positions')->paginate(15); } public function asController(): Response { session()->put('menu', 'invoice'); session()->put('title', 'Rechnungen'); return Inertia::render('invoice/Index', [ 'data' => InvoiceResource::collection($this->handle()), ]); } }