Construtor de consultas Laravel Getmedia Método indefinido

DB::table('xyz')->get(); 
@foreach($array as $element)
   <?php $pics = Model::find($element->id)->getFirstMediaUrl('model_name', 'thumb'); ?>
 @endforeach                 
Awful Alpaca