Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


cornelius van Erkelens
cornelius van Erkelens
240 Points

laravel application

I want to make a laravel application where you can drag and drop divs and send the order of the divs to a database. This order needs to be different for each user.

My questions:

  1. How can i sent JSON with AJAX to a database in laravel
  2. Do i need to make a relationship between the users table in my database and the order table(where i want to sent the order of the divs with AJAX). is this the right way in laravel or is this done another way usually?

It whould be nice if one of you can send me in the right derection.