Gallery query to json

Sredjen query da vraca json (Eloquent model query)