Laravel OrderBy Random
<p>As a novice in Laravel, i'm trying to display the images of a gallery randomly. In <strong>routes.php</strong>, I currently have this code:</p>

<pre><code>// Get galleries
$galleries = App\Gallery::orderBy('id', 'DESC')-&gt;get();
</code></pre>

<p>Do you have any idea to make it work?</p>

<p>Thanks</p>