Anybody know how to perform MySQL queries in Laravel 5?
Go to solution
Solved by keja,
Here is a tut that shows how to build a todo list:
https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-1/
it does not cover joins but you just do something like this:
DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'users.id', '=', 'orders.user_id') ->select('users.id', 'contacts.phone', 'orders.price') ->get();
code also from the like i posted in my first post
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now