Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

leecoding's avatar

inertia dialog function shows error

hi all

I am trying to use inertia dialog function to replace the normal modal work. the dialog feature is really cool. my app is running on laravel 9.13.0 with php 8.0.13

public function edit($id)
    {
        $goodsCategory = GoodsCategory::find($id);
        return Inertia::dialog('GoodsCategory/Edit', [
            'selectedCate' => $goodsCategory,
        ]);
    }

in my vue file I have the link set up.

<Link :href="`/goods-categories/${ goodsCategory.id }/edit`" as="button" method="get">edit</Link>

however, when i click the link the follow error shows. anyone has any idea where i went wrong?

Method Inertia\ResponseFactory::dialog does not exist.
0 likes
1 reply
rvbrindle's avatar

Hi 30:30 https://www.youtube.com/watch?v=euKphNYApn4 of this video he explains it has not yet been published, and will therefore not yet exist! hopefully this feature will be released soon! as there have been no Major releases since Jan 22 - also if you check the inertiajs twitter he said recently:

"Finally, I know you're all wondering — when are new features coming to Inertia.js like the mysterious dialogs feature I demoed two years ago at Laracon?

Being totally honest, I don't know. It's open source, and I work on the project as I have time..."

Please or to participate in this conversation.