Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ページにコメントフォームがありますフォームを送信するときに、フォームに の入力フィールドが含まれていないため、値をhttp://localhost/posts/post_id 添付したいと思います。そして、post_id のコメント テーブルの列名が呼び出され、コメントを作成するルートは 何か考えはありますか? ありがとう! post_idInput::all()post_idpost_idcomments.store
http://localhost/posts/post_id
post_id
Input::all()
comments.store
私はこれがうまくいくと思います:Input::merge(array('post_id' => $post_id));
Input::merge(array('post_id' => $post_id));
これを使用するだけです:
Request::instance()->query->set('key','value');