Skip to content

Instantly share code, notes, and snippets.

View mhovey's full-sized avatar

Michael Hovey mhovey

View GitHub Profile
SELECT
transactions.*,
table_one.*,
table_two.*
FROM
transactions
LEFT JOIN
table_one
ON
table_one.transaction_id = transactions.id
<?php
return DB::select('
SELECT
users.id,
users.email,
users.full_name,
users.created_at,
user_roles.role_id,
user_roles.website_id,