Laravel: How to save the controller of the demo of this survey questionnaire?

Source: Internet
Author: User
Using the laravel5.2 framework, how do I write the controller of the survey below? The demo is as follows: there are 3 data tables, with many-to-many relationships between 1 and 2: 1. respondents 2. sports Favorite sports 3. sport_respondent join table respondents {code ...} sports {... using the laravel5.2 framework, how do I write the controller of the survey below? The demo is as follows:

There are three data tables, one and two many-to-many relationships:
1. respondents // respondent
2. sports // favorite sports
3. sport_respondent // join table

Respondents

id   name   email

Sports

id   sport_name1    Basketball2    Football3    Table tennis4    Badminton5    Baseball6    Swimming

Sport_respondent

id   respondent_id   sport_id

View:

    
      
      
      
      
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.