public function info($tid) { if ($t = Texture::find($tid)) { return json($t->toArray()); } else { return json([]); } }