/** * [getRandomPost description] * @return [type] [description] */ public static function getRandomPost() { return Post::orderByRaw(DB::raw('RAND()'))->limit(5)->get(); }