Skip to content

Instantly share code, notes, and snippets.

@clarkf
Created February 1, 2014 19:05
Show Gist options
  • Save clarkf/8756985 to your computer and use it in GitHub Desktop.
Save clarkf/8756985 to your computer and use it in GitHub Desktop.
<?php
Route::get('testquery', function ()
{
$data->ranks = PictureRank::with('lists') //, 'lists.authorable', 'lists.likes'
->where('added_on', '<', 15000000)
->orderBy('added_on', 'desc')
->take(15)
->get();
foreach ($data->ranks as $rank) {
var_dump($rank->list);
}
die;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment