Passing parameter to a Screen #2208
Unanswered
samyuhaifeng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to pass a parameter to PostEditScreen.php, such as category id to ProductEditScreen, how should I do it? I try to add
'myid' by Route::screen('post/{post?}/{myid?}', PostEditScreen::class)->name('platform.post.edit');
but when I want to create a new post, it is always editing the same one, what should I do in createOrUpdate function? or in query function? thanks a lots!
Beta Was this translation helpful? Give feedback.
All reactions