Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <meta charset = "UTF-8">
- <title></title>
- </head>
- <body>
- <form action="{{ url('/') }}" method="POST">
- {{ csrf_field() }}
- <input type="hidden" name="foo" value="bar" />
- <input type="hidden" name="baz" value="boo" />
- <input type="submit" value="send" />
- </form>
- </body>
- Route::get('post-form', function(){
- return view('form');
- });
- Route::post('/', function(){
- $data= Request::all();
- var_dump($data);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement