`Route::get('/camera', [CameraController::class, 'camera']);
public function camera(Request $request)
{
try {
$photo = Camera::pickImages('all', true);
return response()->json([
'success' => true,
'photo' => $photo,
]);
} catch (\Exception $e) {
// Handle errors (like permission denied)
return response()->json([
'success' => false,
'message' => 'Failed to capture photo: ' . $e->getMessage(),
], 500);
}
}`
What technology used for this ?
use Native\Mobile\Facades\Camera; Route::get('/open-external', function () { Camera::pickImages('all', true); })->name('open-external');
its working if i call like this