How to get multiple image from folder in laravel 4

时间:2017-05-16 09:23:38

标签: php json laravel-4

I'm trying to get multiple image from public/img folder. The images that I'm trying to get is a result of multiple join table

$tayang=DB::table('detiltayang')
    ->join('tayang','detiltayang.idTayang','=','tayang.idTayang')
    ->join('bioskop','tayang.idBioskop','=','bioskop.idBioskop')
    ->join('film','tayang.idFilm','=','film.idFilm')
    ->where('detiltayang.flag','=','1')
    ->where('detiltayang.active','=','1')
    ->get();

    return Response::json($tayang);

How can I get all the image that match the condition from public/img folder? thanks in advance

0 个答案:

没有答案