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