user = auth()->user(); $this->vueFile = $vueFile; $this->props = $props; } public function render() : Response { $this->props['availableLocalGroups'] = Tenant::where(['is_active_local_group' => true])->get(); return Inertia::render( str_replace('/', '/Views/', $this->vueFile), $this->props ); } }