Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

query builder laravel getmedia undefined method

DB::table('xyz')->get(); 
@foreach($array as $element)
   <?php $pics = Model::find($element->id)->getFirstMediaUrl('model_name', 'thumb'); ?>
 @endforeach                 
 
PREVIOUS NEXT
Tagged: #query #builder #laravel #getmedia #undefined #method
ADD COMMENT
Topic
Name
6+1 =