weixin_33721344 2016-07-04 12:39 采纳率: 0%
浏览 42

Laravel,Ajax,Jquery插件

I am designing a form in laravel to save a form which has fields like name, address and product name(it will be a GET method). So product name is to searched from database using jquery autocomplete plugin and ajax. My question is can we have POST and GET method on same view form in Laravel?

And if not then how can I achieve this, ie to save the name, address and filtered product name in db in one go onclick of submit button.

  • 写回答

1条回答 默认 最新

  • weixin_33709219 2016-07-04 12:51
    关注

    Try this one

    Route::any('foo', function () {
        return 'Hello World';
    });
    

    Or

    Route::match(['get', 'post'], '/', function () {
        return 'Hello World';
    });
    
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效