Skip to content
Advertisement

Select from multiple tables with laravel fluent query builder

I’m re-writing some PHP/MySQL to work with Laravel. One thing I would like to do is make the DB queries more succinct with the Fluent Query Builder but I’m a bit lost:

JavaScript

This queries a phpbb forum and gets posts: enter image description here

How could I re-write this to make use of the Fluent Query Builder syntax?

Advertisement

Answer

Not tested but here is a start

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement