user()) || (! $request->user()->isOwner())) { return response()->json([ 'success' => false, 'message' => 'You are not allowed to update this app.' ], 401); } Updater::migrateUpdate(); return response()->json([ 'success' => true, ]); } }