Laravel, PHP, Programming, Software Development, Web Development.
on the uploaded image public function detectImageProperties(Request $request) { $request->validate([ 'avatar' => 'required|image|max:10240', ]); try { $imageAnnotator = new ImageAnnotatorClient([ //we can also keep the details of the google cloud json file in an env and read it as an object here