|
|
@ -12,7 +12,7 @@ class SlideshowController extends Controller |
|
|
|
|
|
|
|
$photos = []; |
|
|
|
|
|
|
|
$tweets = Tweet::where('processed', 1)->orderByRaw('RAND()')->get(); |
|
|
|
$tweets = Tweet::where('processed', 1)->inRandomOrder()->get(); |
|
|
|
foreach($tweets as $tweet) { |
|
|
|
if($tweet->photo) { |
|
|
|
foreach(json_decode($tweet->photo) as $photo) { |
|
|
|